Git Product home page Git Product logo

todo-mrg's Introduction

Requirements

  • Docker
  • NodeJS (>=16)

Instructions

Today we're going to build a Todo App.

General Requirements

Technical Requirements

  • User is able to login to retrieve their todos.
  • User can create/edit/delete todolist contains many todo tasks.
  • It should be fast

Code Maintainability Check

  • Absolute attention to code quality.
  • git is utilized to stick to the strategy of atomic commits

Nextjs App Router Server Actions

Authentication API

The backend expose one route:

  1. '/api/auth/[...nextauth]' All requests made to this route will automatically be handled by NextAuth.js.
GET /api/auth/[...nextauth]
POST /api/auth/[...nextauth]

Part 1: API

First Start

  1. Install deps: npm install
  2. Copy .env.example file cp .env.example .env
  3. Start the databases npm run docker
  4. Run database migrations npm run migrate
  5. Run tests npm run test

Troubleshooting

  1. Make sure you have all the required enviroment variables
  2. Make sure you have Docker Desktop installed and running in your OS.

Discussion

  • Question ?
  • Open to discussion

Notes

  • I used Drizzle ORM as my database ORM, if you want to modify the database schema,

  • To inspect the database:

    • Instruction coming soon...

todo-mrg's People

Contributors

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