This repository contains the source code for the University of Windsor Computer Science Society's website, developed with the Next.js framework. This site is designed to serve our student community by providing information on upcoming events, newsletters, and other resources. The site is integrated with Discord to verify student status and provide access to the society's Discord server.
Before you begin, ensure you have the following installed on your local machine:
- Node.js: Download and Install Node.js
- pnpm: Download and Install pnpm
- Docker: Download and Install Docker
- Docker Compose: Download and Install Docker Compose
-
Clone this repository to your local machine.
-
Install project dependencies:
pnpm install
-
Copy the
.env.example
file and rename it to.env
. Then, update the variables with the appropriate values. Make sure to fill out the required sections before proceeding. -
Set up the database container using Docker Compose:
docker compose up -d db
- Run the migrations using Prisma:
pnpx prisma migrate dev
- Start the Next.js development server, which will automatically reload when changes are made:
pnpm run dev
Your development environment is now set up and running. Access the site at http://localhost:3000.
To build the site for production, run the following command:
pnpm run build
To start the production server, run the following command:
pnpm start
This project is licensed under the MIT License.