Skip to content

Latest commit

 

History

History
58 lines (42 loc) · 1.09 KB

README.md

File metadata and controls

58 lines (42 loc) · 1.09 KB

Create a course selling app

-Initialize a new Node.js project -Add Express, jsonwebtoken to it as a dependency -Create index.js -Add route skeleton for user login, signup, see all course sees the purchase courses course, see course -Add routes for admin login, admin signup, create s course, delete a course, add course content. - -Add middlewares for user and admin auth -Add a database (mongodb), use dotenv to store the database connection string -Define the schema for User, Adsin, Course, Purchase Complete the routes for user login, signup, purchase a course, see course (Extra points - Use express routing to better structure your routes) -Create the frontand

Steps

   npm init -y
   vi index.ja
   node index.js
  npm install express jsonwebtoken mongoose 
   git commit -m"Step1"
   git commit -m"Step1"
   git log
   git status
   git push origin Head
   npm install dotenv

Routing in express , the express Router