Junior — Middle
Can you share details of a personal project you worked on independently or in a team?
sobes.tech AI
Answer from AI
One of my personal projects is a web application for task management, written in Python using Flask. The goal was to create a simple task manager with the ability to add, edit, and delete tasks, as well as filter by status and priority.
In the project, I implemented a REST API, used SQLAlchemy for working with an SQLite database, and applied JWT for user authentication. For the frontend, I used basic HTML and JavaScript.
Example code for creating a task:
from flask import Flask, request, jsonify
from models import Task, db
app = Flask(__name__)
@app.route('/tasks', methods=['POST'])
def create_task():
data = request.json
task = Task(title=data['title'], description=data.get('description', ''))
db.session.add(task)
db.session.commit()
return jsonify({'id': task.id, 'title': task.title}), 201
This project helped me better understand working with REST API, ORM, and authentication in web applications.