Required! Docker installed.
- Go to
/api
directory - Start up the database using
docker
- Start the API
# cd /api
$ docker-compose up -d
$ ./gradlew bootRun
- API needs to be running.
- Go to
/web
directory - Install application and start it, installation might take a few minutes.
# cd /web
$ yarn install
$ yarn start
We can run react tests without having the API and Front-end running.
Go to /web
directory
# cd /web
$ yarn test
Database, API and Front-end need to be running, make sure you've followed the steps presented above.
# cd /api
$ docker-compose up -d
$ ./gradlew bootRun
# cd /web
$ yarn start
$ yarn cy:run
If you want to open cypress client, run yarn cypress open
insteand.
We only need the database running. There is one TODO here, which is configuring the tests so the data generated by them gets rolled back at the end.
Go to /api
# cd /api
$ docker-compose up -d
$ ./gradlew test