-
Backend Framework: NodeJS
-
Language: TypeScript
-
Server Framework: NestJS
-
Database: PostgreSQL
-
Testing Framework: JestJS
-
API Documentation: Swagger
-
Functions documentations:
/** Does something interesting
*
* @param Place $where Where something interesting takes place
* @param integer $repeat How many times something interesting should happen
*
* @throws Some_Exception_Class If something interesting cannot happen
* @return Status
*/
Development template
$ npm install
- Make sure you are having postgresql installed on your machine & running server.
- Create a database named
server_db
or any name you want (config is atconfig/env/dev.env
). - Create a databased for testing purpose named
test_db
you can change it also from same above file.
Make sure to configure all the environment variables in config/env/dev.env
file.
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
# unit tests
$ npm run test
# test coverage
$ npm run test:cov