Make sure you have the following installed on your machine:
-
Create an empty folder and open in Vs code.
-
Open your terminal or command prompt.
-
Clone the repository:
git clone https://github.com/Avinash365/eLearning.git
-
Navigate to the project directory:
cd eLearning
-
create a folder with name .env in eLearing floder and past it:
PORT = 8000 MONGO_DB_URI = 'mongodb://localhost:27017/eLearning' // repalce with your mogodb url make sure you create database with same name.. w = majority JWT_SECRET=Lrvsv73oj+fimFogoFPxDaNY01VoOdfqR237XG1CzrU= NODE_ENV = development
-
Install requried module:
npm install
-
Run the backend server:
npm run server
-
Open new terminal and Navigate to the frontend directory:
cd frontend || if not working than try cd eLearing/frontend
-
Install requried frontend module:
npm install
-
Now see the app:
npm start
Make sure to replace the placeholder ...
with the appropriate values for your environment. This .env
file will contain configuration settings for your application. Once you've set up your .env
file, you can build and start the app using the provided npm commands.