Bello-Bello / p1m3-solution

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Flask and create-react-app

Requirements

  1. npm install
  2. pip install -r requirements.txt

Run Application

  1. Run command in terminal (in your project directory): npm run build. This will update anything related to your App.js file (so public/index.html, any CSS you're pulling in, etc).
  2. Run command in terminal (in your project directory): python3 app.py
  3. Preview web page in browser 'localhost:8080/' (or whichever port you're using)

Deploy to Heroku

  1. Create a Heroku app: heroku create --buildpack heroku/python
  2. Add nodejs buildpack: heroku buildpacks:add --index 1 heroku/nodejs
  3. Push to Heroku: git push heroku main

About


Languages

Language:Python 65.8%Language:JavaScript 20.1%Language:HTML 9.8%Language:CSS 4.4%