Gymsystems/Server
This project is using the brilliant NestJS Framework
, which is based on Node Express and is greatly inspired by Angular. The database connection is handled by TypeORM
, and we are utilizing both REST controllers and GraphQL for our API.
yarn install
Nothing more to it. :-)
You can start the server bit of this project up in three ways:
- Build once and serve
yarn build
yarn start
This will build the backend, and start up the server on localhost:3000.
- Build continously and serve
yarn start:dev
This command will continuously build the backend while you develop, and restart the Node Express server when build is done.
- Build continously and debug
yarn start:debug
This command will continously build the backend while you develop. It will not start the server though. We like to use VSCode, and have included VSCode launch settings in this repository for you. Choose to debug Server
in VSCode, and you are up. When you do changes to the code, the server will rebuild and your debugging session will restart automatically.
You can also launch the project in debug using VsCode. Enter the debugger, choose Server
and press run. We've also included a couple of launch configurations for debugging Server Test
, which will run through the entire test suite in debug mode, or a Server Test Current File
, which will run any unit test currently active in VsCode's editor window.