Skip to content

Developed a Python Flask API with user management endpoints and integrated an AI chatbot using the Coze Web SDK. The Bootstrap-styled frontend is deployed and features consultation links, accountant referrals, live weather updates, Google search, and email summaries. Future upgrades will include Docker and PostgreSQL.

Notifications You must be signed in to change notification settings

doctoralex9/Flask-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

# Flask User Management App

A Flask-based web application with user login and session management. This project includes user authentication, session handling, and user data management with SQLite. It also allows adding, viewing, updating, and deleting user information.

## Features

- **User Login & Session Management:** Secure login with Flask sessions, session expiration set to 5 minutes.
- **SQLite Database:** Manage users' information (name and email) using SQLite and SQLAlchemy.
- **User Management:** Add, update, and delete users with ease.

## Installation

1. Clone the repository:

   ```bash
   git clone https://github.com/yourusername/flask-user-management-app.git
   cd flask-user-management-app

2. Create a virtual environment (recommended):
python -m venv venv
source venv/bin/activate  # On Windows, use `venv\Scripts\activate`

3. Install dependencies:
pip install -r requirements.txt

4. Set up the database:
Run the following command to create the initial SQLite database:
python
>>> from app import db
>>> db.create_all()
>>> exit()

5. Run the application:
python app.py
The app will be available at http://127.0.0.1:5000.

Usage:

Navigate to /login to log in or create a new user.
Visit /view to see a list of all users in the database.
Go to /user to update the logged-in user's email.
Log out using /logout.


File Structure:

app.py: Main application file that includes routes, user authentication, and session management.
templates/: HTML templates for each page.
requirements.txt: Dependencies required for the project.

About

Developed a Python Flask API with user management endpoints and integrated an AI chatbot using the Coze Web SDK. The Bootstrap-styled frontend is deployed and features consultation links, accountant referrals, live weather updates, Google search, and email summaries. Future upgrades will include Docker and PostgreSQL.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published