Main website redesign, written in rust. https://www.ljoonal.xyz
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
ljoonal 37ad2bde7e
progress
1 week ago
.vscode progress 1 week ago
frontend progress 1 week ago
js progress 1 week ago
public Quite a large update 2 weeks ago
sass Quite large rework 1 month ago
src progress 1 week ago
static progress 1 week ago
.drone.yml progress 1 week ago
.gitignore Quite a large update 2 weeks ago
.gitmodules Added secure submodule bac 6 months ago
Cargo.lock progress 1 week ago
Cargo.toml progress 1 week ago
README.md progress 1 week ago
coverage.ps1 progress 1 week ago
rustfmt.toml Quite a large update 2 weeks ago

README.md

ljoonal.xyz

License

Note that this is not open source. I’m fine with people having a look at what I’m done and use it as a learning resource, but please do not just copy all of my work :)

If you want to actually copy it, please contact me to discuss it :) I’m usually happy to give permission freely to non-profits or individuals though.

Setup

You should serve the frontend/static directory with something more efficient, like nginx for example. Also /favicon.ico and /robots.txt should be setup to come from frontend/static too.

Dev

Run the dev setup server with systemfd --no-pid -s http::80 -- cargo watch -x run after having installed systemfd and cargo-watch with cargo.

API

Can be found under /api, contains /token and /destination. They both have the following:

  • GET / - Lists all entities.
  • GET /{id} - Gets the single entity.
  • POST /{id} - Creates a new entity. Please note that the possible ID should be repeated in the entity body.
  • PATCH /{id} - Edits the entity. The updated data should be a partial of the whole entity.
  • DELETE /{id} - Deletes a single entity.