This guide will help you set up the project locally.
Ensure you have the following installed on your machine:
- Node.js (v16 or higher)
- Yarn (v1.22.22 or higher)
- Docker
-
Clone the repository:
git clone <repository-url>
-
Install dependencies:
yarn install
-
Set up environment variables:
-
Copy the
.env.example
file to.env
: -
Update the
.env
file with your specific values if necessary.
-
-
Start the PostgreSQL database using Docker:
docker-compose up -d
-
Run the development server:
yarn dev
-
Build the project:
yarn build
-
Start the production server:
yarn start
-
Lint the project:
yarn lint
- Ensure Docker is running before starting the development server.
- The database connection string and other secrets are managed in the
.env
file. - The project uses Tailwind CSS for styling and Payload CMS for content management.