A full-stack web application built with Flask and React for managing friends' information.
Flask_React/
├── Flask_Server/ # Backend Flask application
│ ├── app.py # Main Flask application
│ ├── models.py # Database models
│ ├── routes.py # API routes
│ └── requirements.txt # Python dependencies
│
├── client/ # Frontend React application
│ ├── public/
│ ├── src/
│ │ ├── components/ # React components
│ │ ├── services/ # API services
│ │ └── App.js # Main React component
│ ├── package.json
│ └── README.md
│
└── README.md # This file
- RESTful API with Flask backend
- React frontend with Material-UI components
- SQLite database with SQLAlchemy ORM
- CRUD operations for friend management
- Automatic avatar generation based on gender
- Responsive design for all screen sizes
- Navigate to Flask_Server directory:
cd Flask_Server
- Create and activate virtual environment:
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
- Install dependencies:
pip install -r requirements.txt
- Run Flask application:
python app.py
The backend server will start at http://localhost:5000
- Navigate to client directory:
cd client
- Install dependencies:
npm install
- Start development server:
npm start
The frontend application will start at http://localhost:3000
GET /api/friends
- Get all friendsPOST /api/friends
- Create a new friendPATCH /api/friends/<id>
- Update a friendDELETE /api/friends/<id>
- Delete a friend
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature
) - Commit your changes (
git commit -m 'Add some AmazingFeature'
) - Push to the branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details