unicornis is a simple and lightweight RESTful API that allows you to create and manage unicorns in a store.
Pull the image from docker hub
docker pull davidokolie/unicornis:latestRun the image
docker run --name unicornis -p 3000:3000/tcp -d davidokolie/unicornis:latestThe API should be running on http://localhost:3000/v1
Clone repository
git clone https://github.com/David-Inkheart/unicornis.gitAdd environment variables
cp env.example .envRequest for Environment variable values and replace them in the newly created env file.
Install dependencies in root and in each services folder
npm installTo run the API locally without containerization, run the following command:
npm run devFor unit tests, run npm run test
Auth for user actions are done using bearer token
NodeJs, Express, Typescript, MongoDB, Redis, Docker, Jest