Skip to content

thejspythonguy/myPythonRepo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DIRFT Todo App

A full-stack Todo application built with an Angular frontend and a FastAPI backend.

This repository contains two main apps:

  • todo-backend/ — FastAPI service exposing a simple TODO REST API.
  • todo-frontend/ — Angular application that consumes the backend API.

Project overview

  • Backend: Python + FastAPI + Pydantic.
  • Frontend: Angular 22 with server-side rendering support.
  • Data store: in-memory dictionary for development and testing.
  • API base path: /api/todos.

Repository structure

  • todo-backend/
    • app.py — FastAPI app and startup entry point.
    • main.py — exports the app object for import and deployment.
  • todo-frontend/
    • package.json — Angular CLI scripts and dependencies.
    • src/ — Angular application source code.

Getting started

Backend

  1. Change to the backend folder:
cd todo-backend
  1. Install Python dependencies (example):
python -m pip install fastapi uvicorn pydantic
  1. Start the API server:
python app.py
  1. Open the API in the browser or via curl:
http://127.0.0.1:8000/api/todos

Frontend

  1. Change to the frontend folder:
cd todo-frontend
  1. Install Node dependencies:
npm install
  1. Start the Angular dev server:
npm start
  1. Open the app in the browser:
http://localhost:4200

The frontend is configured to interact with the backend API running on http://127.0.0.1:8000.

Available commands

From todo-frontend/:

  • npm start — run the development server.
  • npm run build — build the production bundle.
  • npm test — run Angular unit tests.
  • npm run watch — build in watch mode.

Notes

  • The backend stores todos in memory, so data is not persisted between restarts.
  • Use the frontend and backend together for local development.
  • See todo-frontend/README.md for additional frontend-specific instructions.

License

This repository is available under the license defined in LICENSE.

About

Python workshop

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors