MiniaczQ / apsi

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

About

This is a document versioning application made for a college course.

Requirements

Set environmental variable DOCKER_BUILDKIT=1

Running

This environment hosts the entire application on localhost:3000.

Start:

docker compose --profile all up -d --build

Stop:

docker compose --profile all down

Cleanup:

docker compose --profile all down -v

Development

Frontend

Databse + Backend environment

This environment has to be running during frontend development.

Start:

docker compose --profile backend up -d --build

Stop:

docker compose --profile backend down

Cleanup:

docker compose --profile backend down -v

Frontend

Start:

npm run --prefix frontend start

Ctrl-C to quit.

Backend

Databse environment

This environment has to be running during backend development.

Start:

docker compose --profile db up -d

(no --build because we are using pre-made images)

Stop:

docker compose --profile db down

Cleanup:

docker compose --profile db down -v

Backend

Start:

cd backend
cargo run
cd ..

API documentation

Because Rust webservers are young, there aren't many OpenAPI generators, most of them require boilerplate.
For that reason Postman is used and kept up to date in the Apsi.postman_collection.json file.

The simplest usage requires you to register, then login and copy JWT token into collection global variables.
Further usage is adequate.

About


Languages

Language:TypeScript 51.2%Language:Rust 46.8%Language:HTML 0.9%Language:Dockerfile 0.7%Language:CSS 0.4%