Skip to content

Latest commit

 

History

History
52 lines (38 loc) · 1.39 KB

README.md

File metadata and controls

52 lines (38 loc) · 1.39 KB

KSABackend

Introduction

This repository contains the backend for the website of KSA Frisse Heikracht Bree. It is written in Rust using the Actix Web framework. The backend is responsible for serving the website, the API and the database. It also handles the authentication and authorization of users. The frontend is written in Next.js and can be found here. The backend also uses Diesel to communicate with the database.

Running the backend

Prerequisites

Running the backend

To run the backend, you need to create a .env file in the root of the project. This file contains the environment variables that are used by the backend. The .env file should look like this:

DATABASE_URL=postgres://<username>:<password>@<host>:<port>/<database>

You can then run the backend using the following command:

cargo run

TODO

  • Add TLS Support & Https/2
  • Add Authentication & Authorization
  • Add Diesel ORM & Create Database Schema using Postgres
  • Add Users API
  • Add Activities API
  • Add Events API
  • Add Analytics API
  • Add Tests
  • Add User Roles
  • Add Webshop API
  • Add Forms API (registrations)
  • Add Images API
  • Fix Dockerfile