Skip to content

f-i-l-i-p/recipes-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Run Local

  1. Clone repo

  2. Create and activate virtual environment

$ python3 -m venv .venv
$ source .venv/bin/activate
  1. Install requirements
$ pip install -r requirements.txt
  1. Add environment variable
$ export SERVER_SECRET={secret}
  1. Run
$ python3 -m server.main

Deploy to Heroku

  1. Clone repo

  2. Create a new Heroku app.

  3. Add a Heroku Postgres database.

  4. Add these environment variables to heroku

SERVER_SECRET={secret}
NAMESPACE="heroku"
  1. Push to heroku
$ heroku login
$ heroku git:remote -a {app-name}
$ git push heroku master
  1. Initialize database
$ heroku run init

Heroku logs

$ heroku logs --tail

About

Flask backend for recipe-app

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published