salvi/README.md

64 lines
2.1 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.
2025-09-05 21:42:18 +02:00
## Requirements & Dependencies
2025-09-05 21:42:18 +02:00
+ **Python** <mark>3.10+</mark>.
+ **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**.
+ The database drivers needed for the type of database.
2025-09-05 21:42:18 +02:00
To install the dependencies, run (virtualenv advised):
> `pip install -e .`
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
```
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)
+ Run `flask run`.
+ You can now access Salvi in your browser at port 5000.
## 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.
## 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.