Skip to content

DouglasMarq/api-rest-TS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Api-Rest-TS

Ready-to-Code template

Folder structure

Typescript Back-end

  • server/src/index.ts: File that is used to start the node server

Prerequisites

  • Node.js & npm: Please be sure you have installed Node.js and npm module on your computer before running the application
  • MongoDB: Download & Install MongoDB, and make sure it's running on the default port (27017).
  • Typescript: Is used to build back-end application.

Usage

Typescript

  • Clone this project on your computer
  • Be sure you have started MongoDB service before running the application
  • Navigate on project folder
  • Run npm run start on here to Transpile TS to JS and start the server.
  • You can open now send a Post request to http://localhost:3000/api/users/create with username, password and email.

Task List

  • Util folder to manage utilities.
  • Implement JWT.
  • Routes use JWT Validation.
  • Use Express Chain of Responsability on routes.
  • Refactor Routers to take full advantage of Chain of Responsability.
  • Refactor Inversify, so some classes constructors doesn't know eachother (@inject()).
  • Migrate Mongo Models locations (remove from api folder).
  • Migrate from mongoose to typegoose.
  • Create logger (Winston) for routes and etc.
  • Refactor Mongo connector.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published