Students attendance management system written with rust backend and vuejs frontend
This is a toy project built for learning purpose.
Register | Login |
---|---|
New student | View students |
---|---|
- actix-web (Backend)
- vuejs (Frontend)
- PostgreSQL (Database)
Clone the repo:
$ git clone git@github.com:akhilkpdasan/rs-attendance.git
or download zip file and unzip
Install rustup
. See
rustup installs rustc, cargo, rustup and other standard tools to Cargo's bin directory.
Once rustup is installed run this command to make sure everything works.
$ rustc --version
Note: On windows Microsoft Visual Studio 2015+ is required Download
Install PostgreSQL
Database. See
Now we are ready to create database, tables and start backend server.
We can use diesel_cli
to manage database.
$ cd rs-attendance
$ cargo install diesel_cli
$ diesel setup
$ diesel migration run
$ cargo run
Install nodejs
. See
Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine.
$ npm install yarn
$ cd webapp
$ yarn install
$ yarn run dev
The website should now be available on http://localhost:8080
To run tests on backend
$ cargo test
To run tests on frontend
$ cd webapp
$ yarn test