Files
forum-backend/README.md
T
2024-01-25 16:47:06 +01:00

2.0 KiB

Project Name

Short description or introduction of your project.

Table of Contents

About

This is the backend for a forum you can self host. It is written in NodeJS and uses the Surrealdb database. It is a REST API that uses JSON for communication. It is uses the Express framework. Further it uses the following packages:

  • auth-guardian: "^1.1.1",
  • cookie-parser: "^1.4.6",
  • cors": "2.8.5",
  • dotenv: "^16.3.1",
  • express: "^4.18.2",
  • jsonwebtoken: "^9.0.2",
  • surrealdb.node: "^0.3.0"

The frontend will be written in NextJS and will be a seperate repository. This project is under development and is not ready for production.

Features

  • User authentication
  • User registration
  • User login
  • User logout
  • User profile
  • User profile update
  • User profile delete
  • Create post
  • Like post
  • Comment on post
  • Save post
  • Comment on comment
  • Like comment
  • Save comment
  • Search posts
  • Search users
  • Trending posts
  • Most active users
  • Most liked posts
  • Most commented posts
  • Most saved posts

Installation

Prerequisites

NodeJS and NPM are required to run this project. You can download them here.

Clone

Clone this repository to your local machine using

git clone https://gitea.quiztimes.nl/kajvans/forum-backend.git

Setup

Edit .env.example and rename it to .env. Fill in the required information.

Install dependencies

Install the required dependencies using

npm install

Running

Run the project using

npm start

License

This project is licensed under the MIT License - see the LICENSE file for details.

Creators

  • kaj van schalkwijk
  • ruben jimmink

Contact