This project for backend was build by NodeJS. Develop to apply to Sukionsen customers by clone project, originally from following works:
- The Tha Chang on 28/10/2023
- The Sukionsen on 24/11/2023 version tag v1.0.2.dev and v1.0.2.prod
First, install essentials packages modules from package.json:
- npm install
First, run the development server:
- npm run dev
When you want to build and run production server:
- npm start
Open http://localhost:8080/api/docs with your browser to see the result.
You can start editing the page by modifying src/app.ts and save file. The page auto-updates as you edit the file.
| Name | Description |
|---|---|
| dist | Contains the distributable (or output) from your TypeScript build. |
| node_modules | Contains all npm dependencies |
| src | Contains source code that will be compiled to the dist dir |
| src/config | Contains various settings in the project. |
| src/controllers | Controllers define functions to serve various express routes. |
| src/docs | Contains of creating API Documents. |
| src/middlewares | Express middlewares which process the incoming requests before handling them down to the controllers |
| src/routes | Contain all express routes |
| src/utility | Contains functions used in the project. |
| src/app.ts | Entry point to express app |
| package.json | Contains npm dependencies as well as build scripts |
| tsconfig.json | Configuring typeScript compilation |
To learn more about Next.js, take a look at the following resources:
- Node.js Documentation - learn about Node.js with TypeScript features.
- Express - learn about API