Skip to content

cllom/petokpetok

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Events Dashboard

Based on Tim's tutorial (Youtube video link), which btw is a really good intro to Flask, authentification and databases! We built a kind of primitive social media/notice board where anyone can view the dashboard without an account.

The app was deployed using Amazon Elastic Beanstalk - My events dashboard

  • You need to create a account to add or delete items
    • Only users who created the item/event can delete it
  • Adding an image to each item is optional - all images are resized to a width of 620 pixels before being saved to the database
    • There is no image preview when adding a note, so do not fret

Deploying locally

First install the required libraries (python 3.9)

pip install -r requirements.txt

Next launch the flask app

python application.py

Learnings/Notes

  • AWS scans for the variable application for deployment, so the Flask App bokject cannot bet named anything else
  • AWS by default has a 3MB upload limit. This can be changed by specifying an nginx configuration file <custom_config>.conf, and an additional config file <custom_config>.config that tells the container to reload nginx
  • Elastic beanstalk access to s3
  • Http to https