Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ ALTER USER postgres WITH SUPERUSER;
\q
```

If Postgres already has a user not called `postgres`, type `psql -U postgres`
to connect to the database as username `postgres` and set password to
`postgres`.

The default configuration under `config.py` assumes you have the
`msu_dev` and `msu_test` databases created, which are used for
development and testing, respectively. You can create them by doing:
Expand Down Expand Up @@ -74,10 +78,18 @@ before running flask:

### Run the app

On Unix:
```
$ FLASK_APP=msu FLASK_ENV=development flask run --host=0.0.0.0
```

On Windows:
```
> set FLASK_APP=msu
> set FLASK_ENV=development
flask run --host=0.0.0.0
```

The `0.0.0.0` is to allow devices on your local network to connect
to the server.

Expand Down Expand Up @@ -127,3 +139,11 @@ configured:

See the
[documentation](https://developers.facebook.com/docs/graph-api/reference/v5.0/group/events)

## Frequent debugging issues
* If modules or parameters are not recognized, ensure environment
is set up correctly by following all the steps on this Readme.
* If module not recognized despite `pip install <module name>`,
ensure that Python environment is set up correctly. If Anaconda
is installed, `conda install <module name>` might be necessary
depending on how your Python environment is configured.