The online learning application built using Node.js, Express, Mongoose
- Uses Express as the application Framework.
- Authenticates via using JSON Web Tokens.
- Uses MongoDB and Mongoose for storing and querying data.
Make sure you have Node.js and npm installed.
-
Clone or Download the repository
$ git clone https://github.com/FastLearn-ir/fastlearn-backend.git $ cd fastlearn-backend
-
Install Dependencies
$ npm install
-
configure .env file
PORT = 8000 BASE_URL = http://localhost:8000 MONGO_URI = mongodb://127.0.0.1:27017/express-store ACCESS_TOKEN_SECRET_KEY = 032AF2E4B0C670B6348A604B13FD074FCE77D6C8A6FF6A8361820DFFF87A600A REFRESH_TOKEN_SECRET_KEY = 42757476C1B4429E823B36F26BE7F4460570E3ED9182710923D0939365584FD7
-
Start the application
# development mode $ npm run dev # production mode $ npm start
Your app should now be running on localhost:8000.