This repository contains the code for a redesigned CSESoc website. The current website can be found at csesoc.unsw.edu.au.
-
Navigate to the
frontenddirectory withcd frontend. -
Create a
.envfile in thefrontenddirectory with the following content:NEXT_PUBLIC_BACKEND_HOST=localhost NEXT_PUBLIC_BACKEND_PORT=9000This is necessary for the frontend to communicate with the backend.
-
Install dependencies with
npm installif you haven't already. -
Run using
npm run dev, changes will be reflected live.
See package.json for further commands to lint, build, etc.
-
Navigate to the
backenddirectory withcd backend. -
Install dependencies with
npm installif you haven't already. -
Run using
npm run dev, changes will be reflected live.
Make sure you have Docker installed.
-
Run
docker compose buildin the root directory, this will build the frontend and backend services in production mode, meaning live changes will not be reflected. In the future, you will only need to run eitherdocker compose build frontendordocker compose build backendif you have only made changes to the frontend or backend respectively. -
Run
docker compose up(ordocker compose up -dto run in the background) in the root directory, this will start the frontend and backend services. -
Run
docker compose downto stop the services.