Coder Social home page Coder Social logo

vue_flask's Introduction

vue_flask

Responsive AWS Serverless SPA using Vue.js, Flask, Firebase, and more.

Live Serverless Demo

https://kw4udfbos9.execute-api.us-west-2.amazonaws.com/production

Benefits of Serverless

Serverless operations do use a server, but it only runs 20-60 milliseconds at a time.

  • High Performance
  • High Availability
  • High Scalability
  • No Server and associated infrastructure to understand and maintain.
  • Easy undeployment

Disadvantage of Serverless

  • Deployment and Update actions require the entire project to be uploaded. Even a tiny change such as adding one character to a file requires the full project to be uploaded. Projects take minutes to upload.

Technologies Used

Requirements

  • Python 2.7.x or Python 3.6+
  • See requirements.txt

How to Setup Firebase

  • Setup a firebase account.
  • In firebase, click "Create New Project".
  • Open the project.
  • On the Overview page for your project click "Add Firebase to your web app".
  • Use this data to replace apiKey, authDomain, databaseURL, storageBucket, and messagingSenderId in templates/index.html.

Change Flask-S3 Config in vue_flask.py

  • app.config['FLASKS3_BUCKET_NAME'] = 'your_s3_bucket_name_here'

How to Deploy using Zappa - Serverless.

  • Create and Activate a virtual environment for this project. Reference: https://virtualenv.pypa.io/en/stable/installation/
  • pip install requirements.txt
  • Place aws credentials with correct permissions in <path to user folder>\.aws\credentials Reference: Miserlou/Zappa#244
  • Open zappa_settings.json and change "s3_bucket" and "aws_region" to match your AWS account.
  • zappa deploy production
  • Navigate to generated url.

How to Update Deployment

  • zappa update production

How to Undeploy

  • zappa undeploy production

vue_flask's People

Contributors

nueverest avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.