2021-02-23 22:54:08 +01:00
# 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
2022-06-12 11:10:41 +02:00
+ Stored in SQLite/MySQL databases
2021-02-23 22:54:08 +01:00
+ Material Icons
2021-02-23 23:54:29 +01:00
+ Light/dark theme
2023-03-17 11:40:34 +01:00
+ Calendar
2021-02-23 22:54:08 +01:00
+ Works fine even with JavaScript disabled.
2025-09-05 21:42:18 +02:00
## Requirements & Dependencies
2021-02-23 22:54:08 +01:00
2025-09-05 21:42:18 +02:00
+ **Python** < mark > 3.10+</ mark > .
2023-12-12 10:10:20 +01:00
+ **Flask** web framework (and Flask-Login / Flask-WTF / Flask-Arrest extensions).
2025-09-05 21:42:18 +02:00
+ **SQLAlchemy** ORM.
2022-11-09 14:56:41 +01:00
+ **Markdown** for page rendering.
2025-09-05 21:42:18 +02:00
+ ** [SUOU ](https://github.com/yusurko/suou )**. < mark > (since 1.0)</ mark >
2023-07-12 16:28:59 +02:00
* **Python-Dotenv**.
2022-11-10 16:37:30 +01:00
+ The database drivers needed for the type of database.
2021-02-23 22:54:08 +01:00
2025-09-05 21:42:18 +02:00
To install the dependencies, run (virtualenv advised):
> `pip install -e .`
2022-11-10 16:37:30 +01:00
2025-09-05 21:42:18 +02:00
## Usage
2023-07-12 16:28:59 +02:00
2025-09-05 21:42:18 +02:00
+ Clone this repository: `git clone https://github.com/yusurko/salvi`
+ Edit `.env` with the needed parameters. An example `.env` with MySQL:
2023-07-12 16:28:59 +02:00
```
APP_NAME=Salvi
DATABASE_URL=mysql://root:root@localhost/salvi
2022-11-10 16:37:30 +01:00
```
2025-09-05 21:42:18 +02:00
+ Run `python3 -m app_init` to initialize the database and create the administrator user. (The installer is unstable)
2022-11-10 16:37:30 +01:00
+ Run `flask run` .
+ You can now access Salvi in your browser at port 5000.
2023-03-17 23:26:05 +01:00
## Caveats
2025-09-05 21:42:18 +02:00
+ The whole application is free of unit tests. Ergo untested. No coverage.
+ If you forget the password, there is currently no way to reset it. E-mail is not supported as of 1.0.
2023-07-12 16:28:59 +02:00
+ This app comes with no content. It means, you have to write it yourself.
2022-11-10 16:37:30 +01:00
2021-02-23 22:54:08 +01:00
## License
2025-09-05 21:42:18 +02:00
Since 1.0, Salvi is licensed under the [Apache License, Version 2.0 ](LICENSE ), a non-copyleft free and open source license.
Salvi`<=0.9` is under ** [MIT license ](LICENSE.0_9 )**, available at `LICENSE.0_9` .
This is a hobby project, made available “AS IS”, with __no warranty__ express or implied.
I (sakuragasaki46) may NOT be held accountable for Your use of my code.
> It's pointless to file a lawsuit because you feel damaged, and it's only going to turn against you. What a waste of money you could have spent on a vacation or charity, or invested in stocks.