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

https://github.com/cybercookie/web-app-template

Web app template
https://github.com/cybercookie/web-app-template

Last synced: 3 months ago
JSON representation

Web app template

Awesome Lists containing this project

README

        

# Simple REST web server
### Based on the final project from the Rust docs.



So far includes:
- JSON
- Web sockets
- Postgres



### DB

Install postgres on your OS.

Install PgAdmin for better expirience.

Use `test_user_pg` user to connect to PG.

Create `test_db` database.

Create `person` table with the only `string` column `name`.

All the above params, like user or database are configurable in `src/bin/main`.

Start a postgresql server.


### Server
Install Rust on your system.

To start the server - from the root dir run `cargo run`.


### Client

Install `siegel` package globally: `npm i -g siegel`.

To start a demo client - from the root dir run `siegel run -g --client client.js`.