Giter Site home page Giter Site logo

todont's Introduction

todont

Yet another app to keep track of tasks

Architecture

Frontend

Backend

Development

  • Install just for task running
  • Clone the repo
  • Copy .env.dist to .env and fill it out to your heart's content
  • Assemble the frontend and backend with just build
    • Alternatively use watchers just watch-ts and just watch-css
  • Stand up the dev environment just docker
    • Environment will be live at
      • port 8080 for the frontend
      • port 8081 for the backend
      • port 8082 for the db
  • Assemble the database schema with just db
  • Run integration tests with just hurl
  • Run storybook with just storybook

License

The source code contained within this repository is available under the terms of the ISC license.

The kitten at public/assets/logo.png comes from this unsplash image and is used under the unsplash license.

todont's People

Contributors

zbtnot avatar

Watchers

 avatar

todont's Issues

Add base frontend bits

  • Add tailwind
  • Add heroicons
  • Add a cool logo with a cat
  • Add a navbar and base page using the cool cat logo

Add backend endpoints for CRUD operations on a todo

Overview

A todo contains three pieces of information:

  • an optional unique identifier (used for updates/deletes)
  • a string representing its details
  • a boolean representing its state (done = true)

The data structure resembles the form:

{
    id?: number;
    description: string;
    done: boolean;
}

Endpoints

GET /todo

  • retrieves the list of todos

GET /todo/:id

  • retrieves the specified todo
  • returns not found if the record does not exist

POST /todo

  • creates a todo
  • accepts a json body with only the fields mentioned above (except id)
    • on validation failure returns unprocessable entity
  • returns the location header /todo/:id where id is the unique identifier for this created record

PUT /todo/:id

  • updates a todo
  • accepts a json body with only the fields mentioned above (except id)
    • on validation failure returns unprocessable entity
  • returns no content on success
  • returns not found if the record does not exist

DELETE /todo/:id

  • deletes a todo
  • no body for this request
  • returns no content on success
  • returns not found if the record does not exist

Data storage and validation

For this project we will use mysql with the knex query builder.
Request handlers will leverage zod for schema generation and validation.

Add logging

Right now the backend doesn't have any logging.
We should add pino and wire up our endpoints for basic logging info

add production build

tweak esbuild to generate a production build if the environment is set for it

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.