Git Product home page Git Product logo

todo-in-life's Introduction

todo-in-life

This is todo application.
This application has the ability to get, create, update and delete todo's.
You can also manage todo's by grouping them into "short", "medium", "long", and "complete" categories.

スクリーンショット 2022-06-22 6 27 24 スクリーンショット 2022-06-21 7 37 05 スクリーンショット 2022-06-21 7 37 20 スクリーンショット 2022-06-22 6 30 33 スクリーンショット 2022-06-22 6 29 07 Image from Gyazo

The following technologies are used:

Client

  • React

Database

  • sqlx, SQL Toolkit for Rust

Server

Setup

Client

Execute the following command in the project ./client.

# Install the dependencies for React
npm install
# Bundle the JavaScript
npm run build

Backend

Environment variables

Execute the following command in the project root.

echo HOST=0.0.0.0 >> .env
echo PORT=8000 >> .env
echo DATABASE_URL=postgres://admin:admin@localhost:5432/todo-in-life >> .env

Docker

Execute the following command in the project root.

# Build the docker container
docker compose up -d
# Enter the docker container
docker exec -it todo-in-life-actix-backend-1 bash

Database

Execute the following command in the docker container root.

# Create the database
sqlx db create
# Create the schema
sqlx migrate run

Server

Execute the following command in the docker container root.

# Start the server
cargo run

If the server starts successfully, visit localhost.

todo-in-life's People

Contributors

akuu29 avatar

Stargazers

rize avatar

Watchers

 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.