Skip to content

Raandino/alegra-technical-test

Repository files navigation

Allegra Technical Test

Cover Photo

Table of Contents

Project Overview

This project is a technical test designed for Allegra to evaluate my proficiency with the Vue.js framework. The application showcases a range of functionalities utilizing Nuxt 3 for routing, Pinia for state management, and middleware for authentication and application state management.

The application connects with the Allegra API to provide a seamless user experience, allowing for dynamic interactions and features.

Technologies Used

  • Framework: Nuxt 3 (Vue.js)
  • State Management: Pinia
  • API Integration: Allegra API, Pexel API
  • Versioning: Standard Versioning for changelog documentation
  • Deployment: Vercel
  • Responsiveness: Fully responsive design with server-side rendering

Features

  • User Authentication: Secure middleware management for user authentication between pages.
  • Dynamic Search Bar: A responsive search bar that allows users to search for images dynamically, displaying results in real time.
  • Image Integration: Fetches images from the Pexel API, allowing users to view and select images easily.
  • Seller Fetching: Displays available sellers and their points, enhancing user interaction and choice.
  • Invoice Creation: Allows users to create invoices via a POST request to the Allegra API, generating invoices based on selected items and the seller's information.
  • Responsive Design: The application is fully responsive, ensuring a seamless experience across devices.
  • UI Consistency: The design closely resembles the Allegra UI kit, including colors, typography, and icons, providing a familiar interface for users.

Installation

To get started with this project, follow these steps:

  1. Clone the repository:
cd allegra-technical-test
  1. Install the necessary dependencies:
npm install
  1. Set up your environment variables. Create a .env file in the root directory with your Allegra API credentials:
ALLEGRA_API_URL=https://api.allegra.com
PEXEL_API_KEY=your_pexel_api_key
POINTS_TO_WIN=20
INCREMENTS_PER_POINT=3
  1. Start the development server:
npm run dev

Usage

Once the development server is running, open your browser and navigate to http://localhost:3000. You can interact with the application to test the various features implemented.

Changelog

All changes and updates to the project are documented in the CHANGELOG.md file, following the standard versioning format.

Deployment

This application is deployed on Vercel under a custom domain. You can access the live version of the application here.

License

This project is licensed under the MIT License. See the LICENSE file for more details.


Thank you for reviewing my technical test project for Allegra. I look forward to your feedback! Made with love from Managua, Nicaragua <3

About

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors