The source and documentation of the Nerdcult API.
Go to file
antifallobst 51c8a7f7fa
refactor(db): moved from mariadb to postgresql
2023-08-17 21:09:30 +02:00
src refactor(db): moved from mariadb to postgresql 2023-08-17 21:09:30 +02:00
.env refactor(db): moved from mariadb to postgresql 2023-08-17 21:09:30 +02:00
.gitignore added gitignore and fixed api specification for `/account/delete` 2023-08-15 20:25:02 +02:00
API.md feat(api): fully implemented the two (GET and DELETE) `tokens` endpoints 2023-08-17 16:40:05 +02:00
Cargo.lock feat(api): added email regex validation on registration 2023-08-17 01:10:01 +02:00
Cargo.toml refactor(db): moved from mariadb to postgresql 2023-08-17 21:09:30 +02:00
README.md docs(readme): updated readme 2023-08-17 16:40:50 +02:00

README.md

Nerdcult API

This repo contains the source and documentation of the nerdcult api.

The source can be found in src and the docs in API.md.

Running

You can run the server with the following command:

export DATABASE_URL=mysql://user:password@host/database
export SMTP_HOST_URL=smtp.yourmailserver.tld
export SMTP_USER=accounts@yourdomain.tld
export SMTP_PASSWORD=password
./nerdcult_api

Implementation Status

  • /accounts
    • /register - POST
    • /verify - POST
    • /authenticate - POST
    • /delete - DELETE
    • /tokens - DELETE
    • /tokens - GET