Skip to content

phrohdoh/rust-and-polymer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Polyrust

Combining Polymer and Rust (via Rocket and Diesel)

Setup

# from the project root
$ ./setup.bash

Then add at least a single payee and transaction to the sqlite3 .db file created at ./backend/test.db.

Running the backend

# from the project root
$ cd backend ; cargo run

Running the frontend

# from the project root
$ cd frontend ; polymer serve

Viewing the UI

You will need to run your browser with CORS disabled until I properly respond to CORS requests.

I do this on macOS with this function in my shell:

google-chrome-no-cors() {
    open -a "Google Chrome" --args --disable-web-security --user-data-dir
}

To use this open a bash instance and run:

$ google-chrome-no-cors

Which will launch Google Chrome in an insecure mode so I don't have to muck with CORS yet.

Now you can play around with the frontend by navigating to localhost:8080 (or whichever port polymer serve picks).

About

Example project using Polymer on the frontend with a diesel-rocket powered backend

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published