This API provides CRUD operations for managing students, academic histories, and courses.
The Student Service API is designed to manage student records, academic histories, and course enrollments. It provides endpoints to create, read, update, and delete student information, as well as manage academic histories and course enrollments.
- Python 3.8+
- PostgreSQL
- SQLAlchemy
- FastAPI
-
Clone the repository:
git clone https://github.com/yourusername/student-service.git cd student-service
-
Create and activate a virtual environment:
python3 -m venv env source env/bin/activate
-
Install the dependencies:
pip install -r requirements.txt
-
Set up the database:
- Create a PostgreSQL database.
- Update the database URL in the
database.py
file.
-
Run the migrations to set up the database schema:
alembic upgrade head
-
Start the FastAPI server:
uvicorn main:app --reload
-
Access the API documentation at
http://127.0.0.1:8000/docs
.