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
- Host: GitHub
- URL: https://github.com/cybercookie/web-app-template
- Owner: CyberCookie
- Created: 2022-03-06T19:38:52.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2022-03-06T21:38:50.000Z (about 3 years ago)
- Last Synced: 2025-01-11T15:35:06.850Z (4 months ago)
- Language: Rust
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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`.