Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/newtoallofthis123/noob_handler
A Custom CMS I made for my blog
https://github.com/newtoallofthis123/noob_handler
cli cms rust
Last synced: 3 months ago
JSON representation
A Custom CMS I made for my blog
- Host: GitHub
- URL: https://github.com/newtoallofthis123/noob_handler
- Owner: newtoallofthis123
- License: mit
- Created: 2023-08-22T16:20:55.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-16T06:50:53.000Z (4 months ago)
- Last Synced: 2024-10-18T00:55:05.728Z (4 months ago)
- Topics: cli, cms, rust
- Language: Rust
- Homepage: https://www.noobscience.rocks/go/cms
- Size: 138 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# NoobHandler
A Simple CLI that I wrote to handle my mongoDB database that is linked to various ascepts of my site [noobscience.rocks](https://noobscience.rocks)
You can't really use it since you need my unique `MONGODB_URL`, but you can use it as a template for your own CLI.
I just wanted to make a CLI that I could use to handle my database and since I wanted a nice little executable that I could run from anywhere, I decided to make it in rust.
## You can use this
I mean, if you want to, you can use this, but you'll have to change the `MONGODB_URL` to your own database.
Your MongoDB database will need to have the following collections:
- "page"
- "code"
- "go"The page collection will need to be of this format:
```json
{
"_id": "ObjectId",
"hash": "String",
"name": "String",
"content": "String",
"date": "String",
"author": "String",
}
```The code collection will need to be of this format:
```json
{
"_id": "ObjectId",
"hash": "String",
"title": "String",
"content": "String",
"lang": "String",
"author": "String",
}
```The go collection will need to be of this format:
```json
{
"_id": "ObjectId",
"url": "String",
"slug": "String",
}
```Then, hopefully, you should be able to run `cargo build --release` and then move the executable to your path.
I mean, if you want to, the code is quite easily understandable, so you should be able to make a new collection and then change the code to fit your needs.
## License
This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details