Skip to content

mejiaej/mines

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 

Repository files navigation

Required! Docker installed.

Development setup

Run API

  1. Go to /api directory
  2. Start up the database using docker
  3. Start the API
# cd /api

$ docker-compose up -d
$ ./gradlew bootRun
If you run into zsh: permission denied you need to run chmod 755 gradlew

Run Front-end

  1. API needs to be running.
  2. Go to /web directory
  3. Install application and start it, installation might take a few minutes.
# cd /web

$ yarn install
$ yarn start

Running Tests

React component tests

We can run react tests without having the API and Front-end running. Go to /web directory

# cd /web

$ yarn test

End-to-end tests

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.

Integration tests

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published