Skip to content

Greenbax/interview-template

Repository files navigation

Backend setup

Create python3 virtualenv

python3 -m venv env
source env/bin/activate # you need to run this before running any python commands

Install dependencies

pip install -r requirements.txt

Init db

start python interpreter

from backend.init_db import init_db
init_db()

Start backend server

PYTHONPATH=$(pwd) python backend/application.py

Changes to backend code are auto reloaded.

If you run into an issue like TypeError: expected str, bytes or os.PathLike object, not NoneType, try commenting out this line

Frontend setup

Build packages

npm install

Start webpack dev server

In a different command line window

npm run start

Changes to frontend code are auto reloaded.

Testing

Graphql query explorer: http://localhost:5000/graphql

Homepage: http://localhost:5000 Screenshot

Recommanded readings

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published