Skip to content

fredfeng0326/ai-todolist

Repository files navigation

Todo

This workspace has been generated by Nx, Smart Monorepos · Fast CI.

Project Structure

  • apps
    • backend
      • framework: nestjs
      • database: postgres
      • orm: typeorm
      • admin: adminjs
      • api document: swagger
    • frontend
      • framework: react
      • ui: antd

Getting Started

to create a postgres DB:

psql 
CREATE DATABASE todo_backend;

The first time you want to run the backend you'll need to run the migrations so that the DB tables are created:

yarn run migration:run

then you can run the server:

yarn run start:all

Interface Introduction

login page:
you can create a new account by swagger ui or admin js, and then login with the account.

img.png

function page:

  • you can add a new todo task, delete a todo task, and update a todo task.
  • you can add a new step under a task, delete a step, and update a step.

img_1.png you can buy AI function to auto-generate a todo task. img_2.png

  • swagger: http://localhost:3000/api you can test the api by swagger ui. img_3.png
  • admin: http://localhost:3000/admin (default user: adminUser, password: adminUser)
    you already have a admin management platform, you can edit, create, delete the todo task and step, or user. img_4.png img_5.png

Development

# generating migrations
yarn run migration:generate --name xxx

# running migrations
yarn run migration:run

# starting all services
yarn run start:all

About

a todo list with ai function

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published