This project was made as a discussion forum dedicated to Garry's Mod servers. It is based on Nextjs and PostgreSQL.
If you want the version with separate backend and mongodb, switch to v1 tag on github. For backend docs please go to Forum-website-backend.
- User registration and authentication via Google OAuth
- Discussion forums
- Content moderation
- User profiles
- Node.js (v18 or higher)
- pnpm (but npm should work too - not tested)
- docker (for local database setup or docker-compose)
To install and run the project locally, follow these steps:
-
Clone the repository:
git clone https://github.com/highlighted-dev/forum-website-frontend.git cd strefa-gier
-
Install dependencies:
pnpm install
-
Set up the database:
-
Make sure you have Docker installed and running.
-
Start the PostgreSQL database using Docker:
docker run --name forum-db -e POSTGRES_USER=forumuser -e POSTGRES_PASSWORD=forumpassword -e POSTGRES_DB=forum -p 5432:5432 -d postgres
-
Alternatively, you can set up a PostgreSQL database manually and update the connection string in
.env
.
-
-
Create a
.env
file and add your environment variables:cp .env.example .env
-
Run the development server:
pnpm run dev
I've included a docker-compose file to make it easier see the project in action without having to set up a local database manually. It is running in production mode. To use it, follow these steps:
-
Make sure you have Docker and Docker Compose installed on your machine.
-
Create a
.env
file based on the.env.example
file and set your environment variables. -
Run the following command to start the application and the database:
docker-compose up --build
After starting the server, you can access the application at http://localhost:3000
.
To run tests, use the following command:
pnpm run test
This project is licensed under the MIT License. See the LICENSE file for details.