This repository has been archived on 2024-03-23. You can view files and clone it, but cannot push or open issues or pull requests.
ambition-legacy/backend/README.md

17 lines
475 B
Markdown
Raw Normal View History

# Backend Usage
2023-07-27 15:57:32 +01:00
In order to run the backend, you need to have [sqlite3](https://sqlite.org)
installed on your system. Once you do, make a database file named `users.db`
and initialize it with the `sql/init.sql` script:
```sh
$ cat sql/init.sql | sqlite3 users.db
```
You need to create a `.env` file with the following variables:
- `JWT_SECRET`: Required. A cryptographically secure string used to encode
tokens.
- `PORT`: Optional. Overrides the default port of `7741`