EBUY is a full-stack e-commerce website. It allows the customer to perform all necessary operations, such as browsing home page to see all available goods, go to a specific product page to see all its informations and also add it to his cart for potential purchase.
- Clone the repository
git clone https://github.com/MoustafaAshraf8/ebuy.git
- Create database in postgress (sql)
create database ebuy_database;
- Create .env file with these data init:
//version
ACTIVE_VERSION=v1
//database
NODE_ENV="production"
POSTGRESS_HOST=<database host>
POSTGRESS_USER=<your postgres username>
POSTGRESS_PORT=<your postgres port || 5432>
POSTGRESS_PASSWORD=<your postgres password>
POSTGRESS_DATABASE="ebuy_database"
//operating
PORT=<your desired operating port || 8080>
//hashing
SALT_ROUND=10
//jwt secret
ACCESS_TOKEN_SECRET="02d87076e5db06edba9cd95c3f835d5c341f32440a295bb8af6f7821ebef24c90b3773e42e630544ad16b9f7a751c2c580282e956882ea6c26a475c64b628959"
REFRESH_TOKEN_SECRET="a00360a1b18f9517af739ab30e7fecfb341db0ccea707d787170baef1191c41a69032c3d06acaf3fc7ec5e99615bb1e4e4a5de3459f42c2b3889118bea8ae4b5"
- Run the server
cd Server && npm start
- Run the frontend
cd ebuy && npm start
- Brouse the website on localhost://3000