- Make sure the user has docker on the system
- Clone the app and open the docker desktop
- Go to the project folder and run the following command via the terminal:
docker compose up
or
docker compose up -d client
[if the user doesn't want to see logs in the same terminal]
Give some time. Then the server will run onPORT:5000
and the client onPORT:3000
(make sure there is nothing running on those port).
[PS: if users have an old version of docker then they might have to add a hyphen like this docker-compose]
- Make sure app(server) is running(by following above instruction).
- Now open another terminal and go to the server directory and run the following command:
docker exec -it singularity-task-server sh
.
It will take us into the server container. Also, user can access it from the docker desktop. There is an option calledOpen in terminal
into three dots beside all containers. - After doing that user can see
/app #
in the terminal. Now type the following command:npm run test
. It will start Jest.