A simple Node.js API, written using Typescript, and Nest.js with Express.
For more information regarding Nest.js see the official documentation.
1. Clone the application
git clone https://github.com/nicolaspearson/node.api.nest.git
2. Start the database
cd docker
docker-compose up
3. Build and run the app using npm
yarn install
npm run start
The app will start running at http://localhost:3000
npm run start:dev
The app will start running at http://localhost:3000
npm run start:prod
The app will start running at http://localhost:3000
4. Test the app using jest
npm run test:unit
npm run test:e2e
npm run test:cov
Swagger has been integrated into the application, once the app is up and running visit http://localhost:3000/api
See the official documentation for more information.
The easiest way to interact with the API is via the provided ./api/insomnia.json
file. Firstly, download Insomnia, then import the contents of aforementioned JSON file.
npm run typeorm:cli -- migration:create -n Initial
Never commit directly to master, create a feature branch and submit a pull request.