RoySegall / vi

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

VI puzzle

Tests

img.png img.png

Setting up development

It's pretty simple, take a look:

Backend

First, make sure you have a mongo DB instance running. If not, you can mongod DB atlas which is easy to set up.

Then, Go to the backend folder and run:

npm i
cp .env.example .env

In the .env you need to set the mongo DB URI, the collection name, and the port as you want. Next:

npm run dev

Frontend

Go to the frontend and run:

npm i
cp .env.development.example .env.development

Set the address of the backend in the REACT_APP_BACKEND_ADDRESS variable and run:

npm start

That's it. You are ready to start solving the puzzle 🍕🚀

Tests

For now, we have tests for the front end:

cd frontend
npm run test

If you are lazy, like me, you can wait to the CI to wait if the test has passed or not.

Docker

You can use docker to test it. Just run:

docker-compose up -d

After everything is ready go to http://localhost:3000 and you are ready to rock!

About


Languages

Language:JavaScript 74.1%Language:SCSS 14.7%Language:HTML 9.9%Language:Dockerfile 1.2%Language:Shell 0.1%