input: Write a function that sets up a Python Flask backend and a React frontend for a simple task management application. The backend should include a database model for tasks and an API endpoint to create tasks. The frontend should fetch and display the list of tasks. The function should return True if the setup is successful, otherwise False.
  assert setup_task_app() == True
output: 
  def setup_task_app():
      from flask import Flask, jsonify, request
      from flask_sqlalchemy import SQLAlchemy
      import os
  
      app = Flask(__name__)
      app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///tasks.db'
      db = SQLAlchemy(app)
  
      class Task(db.Model):
          id = db.Column(db.Integer, primary_key=True)
          title = db.Column(db.String(80), nullable=False)
          description = db.Column(db.String(200))
  
      @app.route('/tasks', methods=['POST'])
      def create_task():
          data = request.json
          new_task = Task(title=data['title'], description=data['description'])
          db.session.add(new_task)
          db.session.commit()
          return jsonify({'message': 'Task created successfully'}), 201
  
      @app.route('/tasks', methods=['GET'])
      def get_tasks():
          tasks = Task.query.all()
          return jsonify([{'id': task.id, 'title': task.title, 'description': task.description} for task in tasks])
  
      db.create_all()
  
      try:
          app.run(debug=True)
          return True
      except Exception as e:
          return False
  