A website for the BTD6 Maplist project.
You will need an instance of the BTD6 Maplist API running and a Discord Application to run this project.
- Clone the project and install dependencies
git clone https://github.com/SartoRiccardo/btd6maplist-website.git
cd btd6maplist-website
npm ci
- Copy
.env.production
into.env.production.ocal
and compile it out accordingly.
This project uses Cypress for its automated tests. To run the suite, you will need:
- A test version of the BTD6 Maplist API up and running
To start the tests:
- Copy
.env.test
to.env.test.local
and fill it out accordingly - (Optional) Change the environment variables in
cypress.env.json
- Build the website that points to the test API with
npm run build:test
- Start a test version of the website with
npm run start:test
- Now you can run the suite with
npm run cypress:start
Note that this stack mocks the Discord API but does not mock the NinjaKiwi Open Data API.
If you want to use Cypress Cloud, you can use Sorry Cypress.
- Run
docker run -p 1234:1234 agoldis/sorry-cypress-director
as per the guide linked above - Update the
cloudServiceUrl
incurrents.config.js
to point to your instance