Skip to content

Skill3 lidiaacd anandajgc guilhermefl3

About the Application

This application is a web-based platform designed to facilitate the student assignment submission and feedback process for a Software Design (SoftDes) course, specifically labeled as "SoftDes 2018.2." It showcases an example page for "Challenge 1," where the critical functionalities include viewing problem statements, submission deadlines, and feedback/results of submitted assignments. The application features a login functionality so that the users only login with the correct password

The application is built using Flask, a lightweight WSGI web application framework in Python. Flask is known for being simple to set up and flexible, making it ideal for small to medium-sized applications. The platform uses SQL for managing its database operations. SQL databases are robust, allowing for complex queries and transactions necessary for managing course data, assignments, user accounts, submission records, feedback, and results.

Language:

  • Python

Libraries:

  1. flask:
  2. Flask
  3. request
  4. jsonify
  5. abort
  6. make_response
  7. session
  8. render_template
  9. flask_httpauth: Extensão para autenticação HTTP básica.
  10. HTTPBasicAuth
  11. datetime: Módulo para manipulação de datas e horas.
  12. datetime
  13. sqlite3: Módulo para interação com bancos de dados SQLite.
  14. sqlite3
  15. json: Módulo para manipulação de dados JSON.
  16. json
  17. hashlib: Módulo para algoritmos de hash seguros.
  18. hashlib

QuickStart

  1. Requirements:

Certifique-se de que SQLite3 está instalado no seu sistema.

  • macOS:
    brew install sqlite3
    
  • Linux (Debian-based, ex.: Ubuntu):
sudo apt-get install sqlite3
  • Linux (Fedora-based):

    sudo dnf install sqlite
    

  • Windows: Baixe o SQLite3 e adicione o binário ao seu PATH.

  • Install the dependencies

pip install flask flask-httpauth
  1. Create the database
sqlite3 quiz.db < quiz.sql
  1. Create the users.csv with your credentials. Example:

    admin,admin
    

  2. Add your user.

python adduser.py
  1. Start the development server:
python softdes.py

Now you can see in the terminal something like this: alt text

If you open the url, you should see this screen:

alt text