salvi/README.md

63 lines
1.5 KiB
Markdown
Raw Normal View History

# Salvi
Salvi is a simple wiki-like note-taking web application, written in Python using
Flask framework.
**Warning**: Salvi is designed for personal, individual use. It may not be
suitable as a community or team knowledge base.
## Features
+ Write notes on the go, using Markdown syntax
+ Any note can have its own URL
+ Revision history
+ Stored in SQLite/MySQL databases
+ Material Icons
2021-02-23 23:54:29 +01:00
+ Light/dark theme
2023-03-17 11:40:34 +01:00
+ Calendar
+ Works fine even with JavaScript disabled.
## Requirements
+ **Python** 3.6+.
+ **Flask** web framework (and Flask-Login / Flask-WTF extensions).
+ **Peewee** ORM.
2022-11-09 14:56:41 +01:00
+ **Markdown** for page rendering.
+ **Python-I18n**.
2023-07-12 16:28:59 +02:00
* **Python-Dotenv**.
+ The database drivers needed for the type of database.
## Usage
+ Clone this repository: `git clone https://github.com/sakuragasaki46/salvi`
2023-07-12 16:28:59 +02:00
+ Edit site.conf (old way) or .env (new way) with the needed parameters. An example site.conf with SQLite:
```
[site]
name = Salvi
[database]
directory = /path/to/database/
2023-07-12 16:28:59 +02:00
```
An example .env with MySQL:
```
APP_NAME=Salvi
DATABASE_URL=mysql://root:root@localhost/salvi
```
+ Run `python3 -m app_init` to initialize the database and create the administrator user.
+ Run `flask run`.
+ You can now access Salvi in your browser at port 5000.
## Caveats
+ The whole application is untested.
+ If you forget the password, there is currently no way to reset it.
2023-07-12 16:28:59 +02:00
+ This app comes with no content. It means, you have to write it yourself.
## License
[MIT License](./LICENSE).