Below there are detailed instructions on how to run the project.
Please run all commands from inside the project folder - the same folder as the package.json
file
- Build the Docker Image:
docker build -t games-results .
- Run the image in a container
docker run -p 3000:3000 games-results
- go to the dashboard
-
The frontend will be available at http://localhost:3000
-
The games endpoints is http://localhost:3000/api/games
-
The participants endpoint is http://localhost:3000/api/participants
- Install NodeJS version 18
- Install Yarn by running:
npm i -g yarn
- in the app directory (same as package.json file), install the dependencies:
yarn
- After dependencies are installed, dev server is ready to run:
yarn dev
-
The frontend will be available at http://localhost:3000
-
The games endpoints is http://localhost:3000/api/games
-
The participants endpoint is http://localhost:3000/api/participants
- In order to run the production build, first build it
yarn build
- Then run it
yarn start
-
The frontend will be available at http://localhost:3000
-
The games endpoints is http://localhost:3000/api/games
-
The participants endpoint is http://localhost:3000/api/participants
This is a Next.js project bootstrapped with create-next-app
.