-
Clone this repository
-
install dependencies on the frontend
cd frontend && npm install
-
To start the frontend run
npm run start
-
install dependencies on the backend
-
Create a
.env
file. (see.env.example
for reference)cd backend && npm install
-
run the backend
cd backend && npm run start:dev
This will start it in development mode and will reload the application everytime you make a change. Otherwise, you can use
npm run start:prod
to run it in production mode. -
I have also created a Docker image for the backend if that is preferred over running it as a node process.
-
To run the backend in a docker container, run the following command:
docker build -t spirii-backend . docker run -p 3000:3000 spirii-backend
-
The explanation for Task 3 is in the
backend/tdd-explanation.md
file.