# Rust-webapp-starter **Repository Path**: mirrors/Rust-webapp-starter ## Basic Information - **Project Name**: Rust-webapp-starter - **Description**: 使用 Rust 的 Actix-web 框架和 Vuejs 开发的 SPA(single page webapp) - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 1 - **Created**: 2018-04-11 - **Last Updated**: 2025-11-15 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Rust-webapp-starter [![Build Status](https://travis-ci.org/OUISRC/Rust-webapp-starter.svg?branch=master)](https://travis-ci.org/OUISRC/Rust-webapp-starter) > The Extend project **[ruster](https://github.com/rustlang-cn/ruster)** 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 ## How To first create a name 'webapp' postgresql database for this project. ### with docker ```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(v10.7 on my machine) $ cd Rust-webapp-starter/webapp $ npm install $ npm run serve ``` then open browser 'http://localhost:8080/' ## when production ```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).