-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,32 @@ | ||
# wdrforyou-cms | ||
CMS for the WDRforyou bot | ||
|
||
## Django on AWS using Zappa | ||
Our CMS is based on [Django](https://www.djangoproject.com/) and hosted on AWS Lambda using [Zappa](https://zappa.io). | ||
It provides a REST-API for [wdrforyou-bot](https://github.com/wdr-data/wdrforyou-bot). | ||
|
||
|
||
## Local development | ||
We don't advise to deploy to AWS for local development, as it is quite time consuming to set up. Test locally using: | ||
|
||
Enable pipenv shell: | ||
``` | ||
$ pipenv shell | ||
``` | ||
|
||
To run local development server: | ||
``` | ||
$ app/manage.py runserver | ||
``` | ||
For database migrations use: | ||
|
||
``` | ||
$ app/manage.py makemigrations | ||
$ app/manage.py migrate | ||
``` | ||
|
||
Alternatively you can run commands without enabling pipenv shell, for example: | ||
```$ pipenv run app/manage.py runserver``` | ||
|
||
## Deployment | ||
TBD |