docker-compose
CLI (https://www.docker.com/get-started)
docker-compose up
spins up the node, react and mongodb containers. First execution might take 10 minutes to install all dependencies. Later executions will be faster.- The frontend will be available on
localhost:3000
and the backend will be available onlocalhost:8080
. Mongodb is not exposed outside the container internal network. - The backend has one route
/api/transactions
that lists transactions (GET
) and allows transaction creation (POST
, with a body like:{"value": 100}
) - Seeding the database can be done via
/api/seedTransactions
- The frontend will be available on
yarn test
inside the/backend
folder executes tests