docker-compose for development contains:
- server
- redis
- mongo
- mongo-express (mongo client)
create .env file
$ cp dotenv.sample .env
$ docker-compose build
$ docker-compose up
# host
$ git clone [email protected]:TaiBIF/camera-trap-api.git
$ cd camera-trap-api
$ npm install
We use a task queue based on redis.
$ brew install redis
We use gm, so that we need install graphicsmagick or imagemagick.
$ brew install graphicsmagick
$ npm start
$ node . -c
Don't run this command twice.
$ node . -i
Please remove the old template by yourself.
$ node . -m
Update 'latestAnnotationTime' and 'oldestAnnotationTime' of all projects.
$ node . -u
- master: main development branch. No CI workflow connected.
- dev: Merge into master when ready.
- feature/[title]: feature working branch. Will merge into dev when complete. Should be deleted once merged into dev.
- prod: production version.
start container
docker-compose up
- What is brew?
The missing package manager for macOS. https://brew.sh