Skip to content

Perfecto-always/lads-backend

Repository files navigation

Template for using typescript with express

Basic template that only contains the starter file for initializing a basic express server

Folder Structure

  • /function Should contians all the functions required for the server.
  • /middleware Middleware used in the routes
  • /routes Routes for the server
  • /models Contains the schema of the database

Scripts

We only have one routes generating scripts at the time of writing this document.

That is of routes, the command to generate the routes is: npm run routes <routesname>. It creates routes in the routes folder only if the file does not exixts.

Misc

You need to generate some certificates to serve on https in development. Follow this guide in order to generate the certificates.