- The example shows how to building an Angular CRUD App with a FastAPI and using MySQL as a database.
- The article of this repository https://blog.stackpuz.com/building-an-angular-crud-app-with-a-fastapi
- To find more resources, please visit https://stackpuz.com
- Node.js
- Python 3.10
- MySQL
- Clone this repository
git clone https://github.com/stackpuz/Example-CRUD-Angular-18-FastAPI .
- Change directory to Angular project.
cd view
- Install the Angular dependencies.
npm install
- Change directory to FastAPI project.
cd ../api
- Activate virtual environment and install packages.
pip install -r requirements.txt
- Create a new database and run /database.sql script to create tables and import data.
- Edit the database configuration in /api/.env file.
- Run Angular project.
npm start
- Run FastAPI project
uvicorn app.main:app
- Navigate to http://localhost:4200