- Next.js
- React Relay
- Redux
- Cypress
The application is containerized using Docker
-
Ensure you have Docker installed on your machine.
-
Clone the repository to your local machine:
git clone https://github.com/billyChen/eurosport-technique.git cd eurosport-technique
Build the Docker image:
docker build -t eurosport .
This command reads the Dockerfile in the root directory and builds an image named eurosport.
Run the Docker container:
docker run -it -d -p 3000:3000 eurosport
This command runs the container and maps port 3000 of the container to port 3000 on your host machine.
Navigate to http://localhost:3000 in your web browser to access the application.
Jest is used for unit and integration testing. To run Jest tests:
Ensure you have installed all dependencies:
npm install && npm run relay
Run Jest tests with:
npm run test
This script executes the Jest test suites defined in your project.
Cypress is used for end-to-end testing. To run Cypress tests:
Ensure the application is running (either locally or in a Docker container).
Open a new terminal window and navigate to the project directory.
Start Cypress with:
npx cypress open
Alternatively, to run Cypress tests in headless mode:
npx cypress run