It has two folders: Frontend, Backend
Setup Instructions:
- Go to Frontend folder. Run command 'npm install' to install all dependencies for Frontend
- Go to Backend folder. Run command 'npm install' to install all dependencies for Backend
- Install database Postgresql from https://www.postgresql.org/
- Please create .env file inside the backend folder parallel to db.js, index.js inside the backend folder
- Please define the variable DB_HOST, DB_USER, DB_PASS, DB_PORT, DB_NAME according to your database.
- Please define the variable PAYPAL_CLIENT_ID, PAYPAL_SECRET, PAYPAL_BASE_URL according to your PayPal Account
- Please define the variable BACK_URL, FRONT_URL as where your backend and frontend are running respectively
- Run create table commands for creating tables from db.sql in backend folder
To Run the app: Backend: Go to Backend folder. Execute command "npm start". The backend will run at port 8000. We can access it localhost:8000 Frontend: Go to Frontend folder. Execute command "npm start". The Frontend will run at port 3000. We can access it localhost:3000
Implemented features
- Insertion of basic tables data in database
- Creation of session when user lands on the start page
- Load of products from database
- Add to cart
- Searching of products
- Save of orders, order details and payment details
- Integration of PayPal payment gateway