- Initialize a new Node.js project
- Add Express, jsonwebtoken to it as a dependency
- Create index.js
- Add route skeleton for user login, signup, purchase a course, see course
- Add routes for admin login, admin signup, create a 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, Admin, Course, Purchase
- Complete the routes for user login, signup, purchase a course, see course