It is a assignment given by a company.
Follow these steps to set up and run the project locally.
- Node.js, npm and angular CLI installed
-
Clone the repository:
git clone https://github.com/AzizulTareq/angular-nodejs-mongodb-e-commerce.git
-
Navigate to the backend folder:
cd backend
-
Install backend dependencies:
npm install
-
Start the backend server:
npm start
-
Navigate back to the root folder:
cd ..
-
Navigate to the frontend folder:
cd frontend
-
Install frontend dependencies:
npm install
-
Start the frontend server:
ng serve
In the backend root, create a .env
file and add the following code:
PORT=5000
NODE_ENV=development
MONGO_URL=mongodb+srv://azizultareq7:[email protected]/
JWT_SECRET=myapp123456