Skip to content

NIAEFEUP/website-ae

Repository files navigation

AEFEUP Website 🚀

Tech Stack

  • Nextjs 13
  • React 18
  • TypeScript
  • Node 20 (use NVM to manage node versions)

Packages

  • Payload CMS
  • Framer Motion
  • Lucide Icons

⚡ 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

  • The pages directory contains all the pages of the project with app routing, as each file in this directory corresponds to a page.

  • The components directory contains all the components used in the project.

  • The public directory contains all the static files used in the project like images.

  • The collections directory defines the schemas for the collections that will be managed in the Paylode dashboard.

    • After creating a new collection, don't forget to add it to the collections array in the payload.config.js file.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published