Skip to content

LazeBear/jr-todos-api-walkthrough

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jr-todos-api-walkthrough

The purpose of this project is to gain some practical experience on how to build an basic API server with Express.js, by achieving the following tasks:

  • build up a basic express server with GET, POST, PUT, DELETE methods
  • utilise middleware
  • structure the project, so it's more maintainable and clean

There is no database in this project, memory used to mimic the data storage

Demo

API Documentation

Web interface for testing your local sever

Journey begins

1. Basic express server

  • init the project and install express
  • setup an express server
  • build up the server with CRUD operations

code after step 1

2. Format project structure

  • explain a better project structure
  • extract common logic to middleware
  • extract routes and controllers

code after step 2

3. Other useful packages

code after step 3

4. OpenAPI documentation

code after step 4

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published