Skip to content

mangelgl/devmaga-api

Repository files navigation

Endpoint API in NodeJS

Website Documentation

Usage

Install Dependencies

npm i

Run the Application

Once dependencies have installed, run the following command:

npm run dev

Seeders

To fill the database with data, run the following command:

node seeder --import

You can use the flag -i too.

To destroy the data, run the following command:

node seeder --delete

You can use the flag -d too.

Commit Content

  1. Initial Express setup
  2. Using Express Routes
  3. Creating Controller Methods to Routes
  4. Intro to Middlewares
  5. Connecting to Mongo Atlas Database & Paintint Colors on console logs
  6. Creating first Model
  7. Create Bootcamp - POST
  8. Fetching Bootcamps - GET
  9. Updating & Deleting Bootcamps - PUT & DELETE
  10. Error handling
  11. Async/Await Middleware
  12. Slugify the name for url for better SEO
  13. GeoJSON
  14. Database Seeders
  15. Get Bootcamps By Radius - GET
  16. Advanced Filtering
  17. Select, Sort & Pagination
  18. Course Model & Seeder
  19. Course Routes & Controller
  20. Populate, Virtuals & Cascade Delete
  21. Add, Update & Delete Course - POST PUT PATCH
  22. Aggregate - Calculating Average Course Cost
  23. File Uploads
  24. Advanced Results (Select, Pagination, Sorting) in Middleware
  25. User Model & Register & Encryption Password
  26. JWT
  27. USer Login
  28. Sending JWT Token to Browser Cookies
  29. Protect Routes with Auth Middleware
  30. Role Authorization
  31. Bootcamp & User Relationship
  32. Bootcamp & Courses Ownership
  33. Reset password Feature
  34. Update User Details
  35. Users (Admin) CRUD Feature
  36. Parameterized environment variables
  37. Review Model & Controller
  38. Logout to Clear Token Cookie
  39. Prevent NoSQL Injection & Sanitize Data
  40. XSS Protection & Security Headers
  41. Rate limiting, HPP & CORS
  42. Postman Documentation & Docgen

NPM Packages

Information Links

About

Backend API to manage bootcamps, reviews, courses, users and authentication

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published