# Rust-webapp-starter **Repository Path**: zhunengfei/Rust-webapp-starter ## Basic Information - **Project Name**: Rust-webapp-starter - **Description**: 使用 Rust 的 Actix-web 框架和 Vuejs 开发的 SPA - **Primary Language**: Rust - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 10 - **Created**: 2018-04-20 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Rust-webapp-starter Rust single page webapp written in [actix-web](https://github.com/actix/actix-web) with vuejs. - Async stable Actix-web framework - diesel, postgresql r2d2 - SPA CORS JWT - Vuejs Parcel-bundler ## How To first create a name 'webapp' postgresql database for this project. ### with docker ``` docker-compose up -d ``` ## when development ```bash $ 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(v8.9.4 on my machine) $ cd Rust-webapp-starter/webapp $ npm install $ npm run dev ``` then open browser 'http://localhost:1234/' ## when production current thereis a bug with actix-web, so before do, you should comment one line(https://github.com/OUISRC/Rust-webapp-starter/blob/master/src/utils/cors.rs#L6) ```bash $ 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](https://github.com/OUIRC/Rust-webapp-starter/blob/master/LICENSE).