Giter Club home page Giter Club logo

bedrock's Introduction

Bedrock sample app - File Uploader

This is a simple web app which allows users to upload arbitrary JSON files and share a link to download them. Files are limited to 1 MB in size.

Stack:

  • Python/Flask
  • Postgres
  • Docker running on Elastic Beanstalk

Setup

You'll need to set up a virtual environment first:

pyenv install 3.9.5
pyenv virtualenv 3.9.5 bedrock
pip install pip-tools
pip install -r requirements.txt

Then you'll need to set a local .env file. You can get it started from the template:

cp env-template.env .env

Right now the template is complete, because it does not need to contain any secrets. If new environment variables are defined that do need to be kept out of Github, they should be defined in env-template.env but with values left blank.

Running locally

The following will build the Docker file of the Flask app, then run a local server:

script/run

Then just visit http://localhost in your browser.

Running tests

pytest -vs

Formatting

Run fourmat fix to autoformat the Python code.

Deploy

This runs on Elastic Beanstalk. You'll need to have your environment configured for the EB app. Then you can run eb deploy to push it to prod (which is currently the only environment).

bedrock's People

Contributors

patricktemple 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.