Skip to content

Latest commit

 

History

History
23 lines (20 loc) · 488 Bytes

README.md

File metadata and controls

23 lines (20 loc) · 488 Bytes

sanic-react

A simple example of sanic+react service with webpack builder

Setting up

You can run this via Vagrant, just type this command in your prompt:

$ vagrant up

Manual installation

You should make sure you have:

  • at least python3.5 with pip. You might want to create venv
  • npm
  • globaly installed webpack

Then type

$ pip install -r requirements.txt
$ npm --save-dev install
$ npm run build

Use npm run start to run sanic server with react app.