- Node.js 16 LTS or higher
- Docker installed on your machine
- Stable internet connection
In order to clone this repository, please use either of the following commands:
git clone https://github.com/DeutscherDude/star-wars-nest.git
git clone git@github.com:DeutscherDude/star-wars-nest.git
Afterwards, please rename the sample.env
file to .env
and populate it accordingly with your local configuration
For convenience, this repository contains a Makefile, that pre-defines some useful commands. After you have cloned the code, you should use the below commands to start the api. Please note, that the first time around it may take a while, as docker needs to download images from docker-hub ❗
- make build-dev
- make run-dev
In order to stop the instance, please use:
- make stop
To attach the console and see live logs from the application, use the following:
- make attach-console
Please follow the official docker guide, which is distro-dependent: link
Installation packages vary between Intel and Apple chips: link
Installation tutorial: link
Visit official Node.js website and download the LTS or latest version for your system. https://nodejs.org/en/
Running tests, both with can be performed via the Makefile 😃
-
make tests - for tests without the coverage report
-
make tests-coverage - for tests with the coverage report