Welcome, this repo is for a web application built with React and Node.js, designed to facilitate user and product management.
- React: A JavaScript library for building user interfaces.
- React Router: A library for routing in React applications.
- React Query: A data-fetching library for React applications.
- Tailwind CSS: A utility-first CSS framework for styling the application.
- Axios: A promise-based HTTP client for making API requests.
- NestJS: A progressive Node.js framework for building efficient, reliable, and scalable server-side applications.
- TypeORM: An Object-Relational Mapping (ORM) library for TypeScript and JavaScript.
- PostgreSQL: A relational database management system used for storing data.
- User Management: Users can sign up, log in, and log out of the application, edit user details.
- Product Management: Users can search, add, edit, and delete products.
- Cart Management: Users can add products to the cart, edit the quantity of products in the cart, and remove products from the cart.
- Sign Up: Click on the
Sign Up
button to create a new account. - User Management: Click on the any user's Pen Button to edit the user details.
- User Cart Management: Click on the any user's name to view his cart, add, remove or update any items and checkout.
- Navigating around: Click on the user Avatarto navigate to the Product dashboard.
- Product Management: Click on the any product's Pen Button to edit the product details.
- Make sure Docker is installed on your system.
- Clone the repository:
git clone https://github.com/OmerNaveh/User-Grocery-Management-Platform.git
- Change into the project directory:
cd User-Grocery-Management-Platform
- Create a
.env
file in the main directory and add the following environment variables:POSTGRES_USER=Your postgres user name || postgres POSTGRES_PASSWORD=Your postgres user name || root POSTGRES_DB=Your postgres DB || LetsTok POSTGRES_PORT=Your postgres port || 5431 PORT=3001
- Run the following command to start the application:
docker-compose up --detach --build
- The application will be available at
http://localhost:3000
.
- Clone the repository:
git clone ```bash git clone https://github.com/OmerNaveh/User-Grocery-Management-Platform.git
- Change into the project directory:
cd User-Grocery-Management-Platform
- Change into the
backend
directory:cd backend
- Create a
.env
file and add the following environment variables:POSTGRES_USER=Your postgres user name || postgres POSTGRES_PASSWORD=Your postgres user name || root POSTGRES_DB=Your postgres DB || LetsTok POSTGRES_PORT=Your postgres port || 5431 PORT=3001
- Install the dependencies:
npm install
- Run the following command to start the backend server:
npm run start
- Open a new terminal and change into the project directory:
cd ../
- Change into the
frontend
directory:cd frontend
- Install the dependencies:
npm install
- Run the following command to start the frontend server:
npm start
- The application will be available at
http://localhost:3000
.
All rights reserved to Omer Naveh