Coder Social home page Coder Social logo

underbleu / rust-webapp-starter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nujabes403/rust-webapp-starter

0.0 0.0 0.0 437 KB

Rust single page webapp written in actix-web with vuejs.

License: Apache License 2.0

PLpgSQL 1.89% Rust 43.07% HTML 0.91% Vue 49.26% JavaScript 4.87%

rust-webapp-starter's Introduction

Rust-webapp-starter Build Status

The Extend project ruster

Rust single page webapp written in actix-web with vuejs.

  • Async stable Actix-web framework
  • diesel, postgresql r2d2
  • SPA CORS JWT
  • Vuejs

How To

first create a name 'webapp' postgresql database for this project.

with docker

docker-compose up -d

when development

$ git clone https://github.com/OUISRC/Rust-webapp-starter.git
$ cd Rust-webapp-starter
$ cargo install diesel_cli --no-default-features --features postgres
$ diesel setup
$ cargo run

// another shell  nodejs(v10.7 on my machine)

$ cd Rust-webapp-starter/webapp
$ npm install
$ npm run serve

then open browser 'http://localhost:8080/'

when production

$ git clone https://github.com/OUISRC/Rust-webapp-starter.git
$ cd Rust-webapp-starter
$ cargo install diesel_cli --no-default-features --features postgres
$ diesel setup
$ cd webapp
$ npm install
$ npm run build
$ cd ..
$ cargo run

then open broswer 'http://localhost:8000/'

worked

  • signup (done)
  • signin (done)
  • browse pages data : get/post (done)
  • publish article (done)
  • user center : jwt (done)
  • do CRUD (done)

Home

Contribute

welcome to contribute !

License

LICENSE-APACHE.

rust-webapp-starter's People

Contributors

fafhrd91 avatar yanns avatar jflewis avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.