
- Set up FastAPI application with SQLite database - Create User model with email and password fields - Implement JWT token-based authentication - Add user registration and login endpoints - Create protected user profile endpoints - Configure Alembic for database migrations - Add password hashing with bcrypt - Include CORS middleware and health endpoint - Update README with setup and usage instructions Environment variables required: - SECRET_KEY: JWT secret key for token signing
3 lines
82 B
Python
3 lines
82 B
Python
from sqlalchemy.ext.declarative import declarative_base
|
|
|
|
Base = declarative_base() |