You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* add pre-commit
* configure flake8 and yapf
* configure travis to run all pre-commit hooks on changed files
* run yapf on whole codebase and fix issues
* add info on how to install pre-commit hooks
1. The `predev` branch on GitHub is automatically deployed to [opensourcehelpcommunity-predev.herokuapp.com](http://opensourcehelpcommunity-predev.herokuapp.com/).
15
-
2. The `develop` branch on github is automatically deployed to [opensourcehelpcommunity-dev.herokuapp.com](http://opensourcehelpcommunity-dev.herokuapp.com/).
16
-
3. The `master` branch is automatically deployed [to opensourcehelpcommunity.herokuapp.com](http://opensourcehelpcommunity.herokuapp.com/) .
16
+
1. The `develop` branch on github is automatically deployed to [opensourcehelpcommunity-dev.herokuapp.com](http://opensourcehelpcommunity-dev.herokuapp.com/).
17
+
1. The `master` branch is automatically deployed [to opensourcehelpcommunity.herokuapp.com](http://opensourcehelpcommunity.herokuapp.com/) .
17
18
18
19
This is using [Django(1.11)](https://www.djangoproject.com/) and [Bootstrap](http://getbootstrap.com/)
19
20
20
21
## How to Contribute
21
-
This is an Open Source project and we would be happy to see contributors who report bugs and file feature requests submitting pull requests as well. This project adheres to the Collaborative [code of conduct](https://github.com/OpenSourceHelpCommunity/OpenSourceHelpCommunity.github.io/blob/develop/CODE_OF_CONDUCT.md). By participating, you expect to maintain the code of conduct. Before creating `New issue` and `Pull request`, please refer to the [template](docs).
22
+
23
+
This is an Open Source project and we would be happy to see contributors who report bugs and file feature requests submitting pull requests as well. This project adheres to the Collaborative [code of conduct](https://github.com/OpenSourceHelpCommunity/OpenSourceHelpCommunity.github.io/blob/develop/CODE_OF_CONDUCT.md). By participating, you expect to maintain the code of conduct. Before creating `New issue` and `Pull request`, please refer to the [template](docs).
22
24
23
25
All the development is done on `predev` branch and once we're ready for testing the deployment in real environment with databases we merge the `predev` branch with the `develop` branch. When we're ready for new release we merge `develop` with `master` to deploy it on our main website. **Please submit your pull request based on `predev` branch.**
24
26
25
27
## Installations
28
+
26
29
Run
27
-
```
30
+
31
+
```bash
28
32
pip install -r requirements.txt
29
33
```
30
-
to install everything required to run this project on heroku as well as on your local.
31
34
35
+
to install everything required to run this project on heroku as well as on your local.
1. Go inside main Django app [Instructional video on installing Django](https://youtu.be/qgGIqRFvFFk)
46
+
47
+
```bash
48
+
cd oshc
49
+
```
50
+
51
+
1. Install [pre-commit](pre-commit.com) into your git hooks. [pre-commit](pre-commit.com) will now run on every commit. Every time you clone a project that is using [pre-commit](pre-commit.com) running [pre-commit](pre-commit.com) install should always be the first thing you do after installing requirements.
52
+
53
+
```bash
54
+
pre-commit install
55
+
```
56
+
57
+
1. Collectstatic files using
58
+
59
+
```bash
60
+
python manage.py collectstatic
61
+
```
62
+
63
+
1. Run the app
64
+
```bash
65
+
python manage.py runserver
66
+
```
54
67
55
68
To run the web app in Debug mode set the DEBUG environment variable.
56
69
In Linux, run the `export DEBUG=True` command in the terminal.
0 commit comments