cd ~/environment && git clone https://github.com/Sresht/lect12/ && cd lect12
- Install your stuff!
a)npm install && npm install -g webpack && npm install --save-dev webpack && npm install socket.io-client --save
⚠️ ⚠️ ⚠️ If you see any error messages, make sure you usesudo pip
orsudo npm
. If it says "pip cannot be found", runwhich pip
and usesudo [path to pip from which pip] install
⚠️ ⚠️ ⚠️ - Copy your
sql.env
file:cp ~/environment/lect11-starter/sql.env ~/environment/lect12
⚠️ sql.env
should contain a value for DATABASE_URL
sudo service postgresql start
andcd ~/environment/lect12 && python
- In the python interactive shell, run:
import models
models.db.create_all()
models.db.session.commit()
- Start psql:
sudo service postgresql start
- Run
npm run watch
- Run
python app.py
- Preview your application
- Make a note of your URL when you run the app - you're going to need it soon!