Skip to content

johaonet/trackchain-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

REST API with Node using Typescript

This is a simple REST API developed using node and express with typescript

alt text

Requirements

Node.js

Getting Started

Run the app locally

Folder Structure

src
└───index.ts           # Application entry point
└───routes             # Application routes / endpoints
└───controllers        # Express route controllers for all the endpoints of the app
└───repositories       # All the database interaction logic is here
└───data               # data
└───handlers           # Common logic
└───logs               # application logs
└───models             # DB Models
└───postman_collection # import file json for use postman

Features

  • CRUD operations for boks
  • Error Logs
  • Setup docs

Planned

  • JWT login
  • Unit Testing
  • Postman collections
  • Improve request Object Validations
  • Improve Error Messages for request failures
  • Security
  • Hosting

REST Services

The application exposes a few REST endpoints

HTTP GET /api/book

HTTP GET /api/book/:id

HTTP PUT /api/book/:id

HTTP POST /api/book

Recommended / Preferred

VSCode

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published