This codebase was created from scratch including Typescript Node, routing, and validation.
To get the Node server running locally:
- Clone this repo
- Please download and install the Node.js on the download page to use
npm
. npm install
to install all required dependencies- Copy
.env.example
to.env
and enter all variables. npm start
to start the local server.
server.ts
- The entry point to our application.app.ts
- This file defines our application. It also requires the routes we'll be using in the application.routes/
- This folder contains the route definitions for our API.controllers/
- This folder contains the controllers to handle Http request.interfaces/
- This folder contains the interfaces used in controllers.validators/
- This folder contains the validators for our Http request.utilities/
- This folder contains the environment variables, logger amd error handling logic.