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:latest
Run the image
docker run --name unicornis -p 3000:3000/tcp -d davidokolie/unicornis:latest
The API should be running on http://localhost:3000/v1
Clone repository
git clone https://github.com/David-Inkheart/unicornis.git
Add environment variables
cp env.example .env
Request for Environment variable values and replace them in the newly created env
file.
Install dependencies in root and in each services folder
npm install
To run the API locally without containerization, run the following command:
npm run dev
For unit tests, run npm run test
Auth for user actions are done using bearer token
NodeJs, Express, Typescript, MongoDB, Redis, Docker, Jest