7eblog_backend
Zomby7e's Blog - Backend, is just a micro blog backend.
This project is written in Rust, it depends on Actix, uses SQLite to store data.
Frontend (I developed it together): 7eblog_frontend
Contribute: fork it and create pull request.
Getting started
-
Create a file named
about.md
, which is used to store blog information. -
Create a blank SQLite database file (command line):
sqlite3 main.db "CREATE TABLE t(i INTERGER); drop table t;"
This is the database used to store articles.
-
Change to the root directory of the project, simply run:
cargo run
When the program is run for the first time, the data tables will be automatically generated.
-
Use a software to modify the database file, then you can preview articles on frontend.
if you have no idea, try this. Articles are stored in pure markdown.
TODO list
- Refactor the project to improve code readability.
- Build a picture storage service.
- In site search engine.
- SQL injection prevention.
- Multithreading.
- Improve the table structure of the database.
- Connection pool.
- Automatically generate database files instead of relying on command line programs.
- Make a standard: include module paths, naming conventions for variables (or functions).
- Use a toml file to configure the server, about(about.md) content should be included in it.
- the package name cannot start with a digit 7, maybe I need to think about rename this project.
- Add performance monitor.
- Will add more if needed.
Contact Me
Email: [email protected]