Winter Hackaton - Os engenheiros e a Biocoisa

MasterMomentum

This project allows users to search for universities and see reviews from other students about their experiences. Users can also search for majors within each university and see reviews about the specific major. Useful for High School students ready to begin their University Life and for university students that want to ingress in a Masters degree or in optional classes.

Running our project

This is a guide on how to run our project that uses Prisma and Next.js with pnpm.

Prerequisites

Before running our project, you must have the following software installed:

  • Node.js (version 16 or later)
  • pnpm (version 7 or later)

Installation

To install the project, follow these steps:

  1. Clone the repository from GitHub: git clone https://github.com/franciscoBSalgueiro/engbiocoisa
  2. Navigate to the project directory: cd engbiocoisa/website
  3. Install the dependencies using pnpm: pnpm install
  4. Generate the Prisma client: pnpx prisma generate
  5. Initialize the database: pnpx prisma db push

Environment Variables

The project uses environment variables to configure the database connection. Define the following environment variables in a .env file in the project root:

DISCORD_CLIENT_ID=<your Discord client ID>
DISCORD_CLIENT_SECRET=<your Discord client secret>
NEXTAUTH_SECRET=<your NextAuth secret>

Running the Project

To run the project, follow these steps:

  1. Start the development server: pnpm dev
  2. Open your web browser and navigate to http://localhost:3000

Building for Production

To build the project for production, follow these steps:

  1. Build the Next.js app: pnpm build
  2. Start the production server: pnpm start
  3. Open your web browser and navigate to http://localhost:3000