API server for answerfamily service
738
npm install.env.sample to .env. By default it is paired with settings inside docker-compose.yml, thus no need to change for local development.To start up the API server, please follow these steps:
docker-compose upnpm startBoth step would attach to the terminal window. Ctrl-C to stop any of them
First, clean up the current database specified in .env.
$ curl -X localhost:9200/_all
Then run the following to set mongodb validator & elasticsearch mappings
$ npm run schema
Lastly, run:
$ npm test
Note: unit test clears the databases .env specifies.
Content type
Image
Digest
Size
341.7 MB
Last updated
over 7 years ago
docker pull answerfamily/api