This repository contains the code for a redesigned CSESoc website. The current website can be found at csesoc.unsw.edu.au.
-
Navigate to the
frontend
directory withcd frontend
. -
Create a
.env
file in thefrontend
directory with the following content:NEXT_PUBLIC_BACKEND_HOST=localhost NEXT_PUBLIC_BACKEND_PORT=9000
This is necessary for the frontend to communicate with the backend.
-
Install dependencies with
npm install
if 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
backend
directory withcd backend
. -
Install dependencies with
npm install
if you haven't already. -
Run using
npm run dev
, changes will be reflected live.
Make sure you have Docker installed.
-
Run
docker compose build
in 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 frontend
ordocker compose build backend
if you have only made changes to the frontend or backend respectively. -
Run
docker compose up
(ordocker compose up -d
to run in the background) in the root directory, this will start the frontend and backend services. -
Run
docker compose down
to stop the services.