Skip to content

CyberCookie/Web-app-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Web app template

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published