Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/myomikron/webserver-template

Template for a webserver with Frontend
https://github.com/myomikron/webserver-template

Last synced: 19 days ago
JSON representation

Template for a webserver with Frontend

Awesome Lists containing this project

README

        

# Rust webserver template

To use this template, ensure `cargo-generate` is installed:

```bash
cargo install -f cargo-generate
```

To use this template, execute:

```bash
cargo generate --git https://github.com/myOmikron/webserver-template.git
```

## Frontend

To initialize the frontend run:

```bash
cd frontend/ && npm install
```

Also set the URL in `frontend/scripts/gen-api.sh` from which the `openapi.json` can be downloaded.

## Backend

To initialize the backend run:

```bash
cargo build -p webserver
```