2023-08-15 17:43:53 +00:00
|
|
|
# Nerdcult API
|
|
|
|
This repo contains the source and documentation of the nerdcult api.
|
|
|
|
|
2023-08-16 16:05:54 +00:00
|
|
|
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
|
2023-08-17 13:27:05 +00:00
|
|
|
export SMTP_HOST_URL=smtp.yourmailserver.tld
|
|
|
|
export SMTP_USER=accounts@yourdomain.tld
|
|
|
|
export SMTP_PASSWORD=password
|
2023-08-16 16:05:54 +00:00
|
|
|
./nerdcult_api
|
2023-08-17 13:27:05 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
## Implementation Status
|
|
|
|
- `/accounts`
|
|
|
|
- [X] `/register` - POST
|
|
|
|
- [X] `/verify` - POST
|
|
|
|
- [X] `/authenticate` - POST
|
|
|
|
- [X] `/delete` - DELETE
|
|
|
|
- [ ] `/tokens` - DELETE
|
|
|
|
- [ ] `/tokens` - GET
|