Eironauts is an educational game designed to promote awareness and engagement with air quality issues in Ireland.
The Eironauts prototype can be played here.
Before starting, ensure you have the following installed on your system:
- Git: Version control system. You can download and install it from here.
- Install a code editor like Visual Studio Code.
- GitHub: Create a GitHub account here
If using a Windows Machine, it is recommended to use Windows Subsystem for Linux (WSL).
- Install WSL: Follow the instructions here to install WSL.
Open a terminal (WSL for Windows, Terminal for Mac and Linux) and clone the repository using the following command:
git clone [email protected]:craigtkhill/final-year-team-project.git
Change directory to the cloned repository:
cd final-year-team-project
-
Install Bun: Follow the instructions here to install the Bun package manager.
-
Install Next.js: In the project directory (
final-year-team-project
) install Next.js using Bun:bun add next
To start the development server, run the following command in your project directory:
bun dev
Open http://localhost:3000 in your browser to see the result.
The page auto-updates as you edit files.
This guide outlines the git workflow for working with two branches: dev
and main
. Changes made to the main
branch are pushed into production and affect the live website, provided they pass all tests. The dev
branch is used for local development and to push changes to a dev server for review on a separate, non-public server.
-
Check out the
dev
Branchgit checkout dev
-
Make Changes to Your Code
-
Stage the Changes
git add .
-
Commit the Changes
git commit -m "Descriptive message about the changes"
-
Pull the Latest Changes from
dev
git pull origin dev
-
Push Changes to the Remote
dev
Branchgit push origin dev
-
Check Changes on the Remote Development Server
- Do this using Vercel (details below)
-
Check out the
main
Branchgit checkout main
-
Pull the Latest Changes from
main
git pull origin main
-
Merge the
dev
Branch intomain
git merge dev
-
Push Changes to the Remote
main
Branchgit push origin main
-
Check Changes on the Live Website
- Do this using Vercel
- Visit Vercel Website:
- Go to Vercel and sign up.
-
Deployment Dashboard:
- In the Vercel dashboard, select your project to view its details.
- You will see the "Deployments" tab where all deployments (both production and development) are listed.
-
Branch Deployments:
- Vercel automatically deploys every branch of your repository.
- Production branches (
main
) are highlighted separately. - Development branches will have preview URLs that you can share and test.
- The free tier plan on Vercel allows only up to 2 team members to access the development server.
-
Checking Status:
- Each deployment will have a status indicator (e.g., building, ready, error).
- Click on any deployment to view detailed logs and status.
To run your tests, execute the following command in your project directory:
bun test
Bun will automatically find and execute all test files in your project, displaying the results in the terminal.
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.