NIAEFEUP / website-ae

MIT License
0 stars 0 forks source link

AEFEUP Website 🚀

Tech Stack

Packages

âš¡ Installation

Here are the steps you need to follow to install the dependencies.

    pnpm install

Setup your environment variables with a database name and a password.

Now you just need to create the database with docker or use directly your local database. Thats up to you.

    ./start-database.sh

You can start the project on the local server

    pnpm run dev

It’ll start the template on localhost:3000.

Payload 3.0 and Next.js conflicts

As Payload 3.0 has some conflicts with Next.js version 13.4.13 and higher, we need to properly initialize Payload before trying to access the local API.

import { getPayload } from 'payload'
import config from 'payload.config'

const payload = await getPayload({ config })

Project structure