Giter Club home page Giter Club logo

rust_todo_mvc's Introduction

Rust TodoMVC

Code for the to do app from the book Rust Web Programming. The code will be gradually improved as I learn Rust more.

Running the application

  • cargo run
  • RUST_LOG="info,parser::expression=info,actix_web=info" cargo run for running it with logging enabled
  • RUST_LOG="info,parser::expression=info,actix_web=info" cargo run --release for running it in release mode

Note that the code in this repo is missing the .env and the docker-compose.yml files. You will need to add the connection details for your PostgreSQL database: DATABASE_URL=postgres://username:password@localhost/to_do . The docker-compose.yml file is optional, you don't have to run PostgreSQL in a container. If you choose to run it in a container, the file looks something like this:

version: "3.7"

services:

  postgres:
    container_name: 'to-do-postgres'
    image: 'postgres:11.2'
    restart: always
    ports:
      - '5432:5432'
    environment:
      - 'POSTGRES_USER=username'
      - 'POSTGRES_DB=to_do'
      - 'POSTGRES_PASSWORD=password'

To do:

  • Improve security
  • Add more tests
  • Refactor to onion architecture
  • Replace the frontend code from the book with Rust WebAssembly, using a framework like Yew.

rust_todo_mvc's People

Contributors

tiberiualex avatar

Stargazers

 avatar

Watchers

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