Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/SamSamskies/django-webpack-heroku-example
Example app using Django, Webpack, and React
https://github.com/SamSamskies/django-webpack-heroku-example
Last synced: 23 days ago
JSON representation
Example app using Django, Webpack, and React
- Host: GitHub
- URL: https://github.com/SamSamskies/django-webpack-heroku-example
- Owner: SamSamskies
- Created: 2016-02-12T01:51:50.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-02-12T02:02:17.000Z (almost 9 years ago)
- Last Synced: 2024-08-04T04:03:19.802Z (4 months ago)
- Language: HTML
- Homepage: https://django-webpack-heroku-example.herokuapp.com/
- Size: 38.1 KB
- Stars: 37
- Watchers: 5
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- starred-awesome - django-webpack-heroku-example - Example app using Django, Webpack, and React (HTML)
README
# django-webpack-heroku-example
A barebones Python app using Webpack and React, which can easily be deployed to Heroku.
This application supports the [Getting Started with Python on Heroku](https://devcenter.heroku.com/articles/getting-started-with-python) article - check it out.
## Running Locally
Make sure you have Node and NPM [installed property](https://nodejs.org)
Make sure you have Python [installed properly](http://install.python-guide.org). Also, install the [Heroku Toolbelt](https://toolbelt.heroku.com/) and [Postgres](https://devcenter.heroku.com/articles/heroku-postgresql#local-setup).
```sh
$ npm install
$ npm run webpack
$ pip install -r requirements.txt
$ createdb python_getting_started
$ heroku local:run python manage.py migrate
$ python manage.py collectstatic
$ heroku local
```Your app should now be running on [localhost:5000](http://localhost:5000/).
## Add Buildpacks
```sh
$ heroku buildpacks:add --index 1 heroku/nodejs
$ heroku buildpacks:add --index 2 heroku/python
```## Deploying to Heroku
```sh
$ heroku create
$ git push heroku master
$ heroku run python manage.py migrate
$ heroku open
```
or[![Deploy](https://www.herokucdn.com/deploy/button.png)](https://heroku.com/deploy)
## Documentation
For more information about using Python on Heroku, see these Dev Center articles:
- [Python on Heroku](https://devcenter.heroku.com/categories/python)