Giter VIP home page Giter VIP logo

webapp.rs's Introduction

WebApp.rs

Build Status License MIT Crates.io

A web application completely written in Rust

Target of this project is to write a complete web application including backend and frontend within Rust. More background can be found on the related blog post.

Build

The following build dependencies needs to be fulfilled to support the full feature set of this application:

The app consist of a frontend and a backend. For getting started with hacking, the backend can tested via make backend, whereas the frontend can be tested with make frontend. You can adapt the application configuration within Config.toml if needed. The basic frontend to backend technology stack looks like this:

tech stack

Run

If both, the backend and frontend are running, you can visit the web application at http://127.0.0.1:8000. After the successful loading of the application you should see an authentication screen like this:

authentication screen

Now you are able to login with a matching username and password combination like me (username) and me (password). There is currently no further user authentication yet, but non matching combination will result in an authentication failure. After the successfully login you should be able to see the content of the application:

content screen

The authentication should persist, even after a manual page reload. Logging out of the application via the logout button should also work as intended.

Control Flow

The complete control flow of the application looks like this:

control screen

Deploy

To deploy the application as a docker image, simply run:

make deploy

After that you can run the application side by side with a PostgreSQL container via:

make run

The application should now be accessible at http://127.0.0.1:30080.

Contributing

You want to contribute to this project? Wow, thanks! So please just fork it and send me a pull request.

webapp.rs's People

Contributors

saschagrunert 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.