GithubHelp home page GithubHelp logo

luigivanin / customer-manager-sample Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 160 KB

his simple Proof of Concept (POC) amalgamates React for the frontend and Vite for the build system, showcasing basic CRUD functionalities for managing customers.

JavaScript 0.74% HTML 0.52% TypeScript 96.17% CSS 2.57%

customer-manager-sample's Introduction

๐Ÿ“‹ Customer Manager

Welcome to the Customer Manager project! ๐Ÿš€ This simple Proof of Concept (POC), showcasing basic CRUD functionalities for managing customers.

The backend code can be seem in the following repository.


โš™๏ธ Project Setup

Before running the project, it is necessary to have npm and node installed on your machine.

Note

โ„น๏ธ System Information:

  • npm ~> v9.8.1
  • node ~> v18.18.2

Warning

โš ๏ธ Important Note:
It is crucial to mention that this project locally utilizes pnpm (v8.9.2) instead of npm, although both should be able to interoperate without any issues.

After checking or installing node and npm on your machine it is necessary to clone the git repository of the frontend with the following command:

$ git clone https://github.com/LuigiVanin/customer-manager-sample.git

After all, ensure to create an .env file following the structure outlined in .env.example. This file should contain all necessary environment variables for the application to function properly.

Variable Description
VITE_API_URL The URL of the API endpoint that the frontend consumes. For local development, it is set to http://localhost:5138/. Ensure it points to the correct API server address.

๐Ÿš€ How to Run the Frontend

Firstly, it's necessary to install all project dependencies using npm:

$ npm i

To run the project in development mode, use the following command:

$ npm run dev

๐Ÿ› ๏ธ How to Build the Project

To build the project, execute the following command:

$ npm run build

Folder Structure

  • src/components: This directory may contain reusable components that can be used in various parts of the application.

  • src/pages: Specific page components will be placed here. Each page may have its own directory with components, styles, etc.

  • src/pages/layouts: Folder designated for page layouts.

  • src/services: Shared services will be placed here. Services are used for business logic, communication with APIs, etc.

  • src/lib: This directory may contain shared resources.

  • src/hooks: Files related to React hooks will be maintained here.

  • src/types: Specific types for this application will be kept here.

  • src/providers: This folder will contain all custom context providers for global contexts.

๐Ÿ“ฆ Tools

customer-manager-sample's People

Contributors

luigivanin avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.