-
Notifications
You must be signed in to change notification settings - Fork 1
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
0 parents
commit 8820819
Showing
30 changed files
with
1,693 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
winds_mobi_admin/local_settings.py |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
*.pyc | ||
.idea/ | ||
winds_mobi_admin/local_settings.py |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
3.7.3 |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
FROM python:3.7-slim-stretch | ||
|
||
RUN apt-get update; \ | ||
apt-get --yes --no-install-recommends install build-essential libpq-dev; \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
ADD . /app | ||
WORKDIR /app | ||
|
||
RUN pip install pipenv | ||
RUN pipenv install --system --deploy | ||
|
||
RUN apt-get --yes --purge autoremove build-essential | ||
|
||
EXPOSE 8000 | ||
CMD ["gunicorn", "--bind=0.0.0.0:8000", "winds_mobi_admin.wsgi"] |
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
[[source]] | ||
name = "pypi" | ||
url = "https://pypi.org/simple" | ||
verify_ssl = true | ||
|
||
[packages] | ||
django = "==2.2.1" | ||
dj-database-url = "==0.5.0" | ||
djangorestframework = "==3.9.4" | ||
django-cors-headers = "==3.0.1" | ||
google-auth-oauthlib = "==0.3.0" | ||
gunicorn = "==19.9.0" | ||
psycopg2 = "==2.8.2" | ||
pymongo = "==3.8.0" | ||
pyjwt = "==1.7.1" | ||
sentry-sdk = "==0.8.0" | ||
whitenoise = "==4.1.2" | ||
|
||
[dev-packages] | ||
"flake8" = "==3.7.7" | ||
"flake8-quotes" = "==2.0.1" | ||
|
||
[requires] | ||
python_version = "3.7" |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
winds.mobi - real-time weather observations | ||
=========================================== | ||
|
||
[winds.mobi](http://winds.mobi): Paraglider pilot, kitesurfer, check real-time weather conditions of your favorite spots | ||
on your smartphone, your tablet or your computer. | ||
|
||
Follow this project on: | ||
- [Facebook](https://www.facebook.com/WindsMobi/) | ||
|
||
winds-mobi-admin | ||
-------------------- | ||
|
||
Django application to manage winds.mobi users and profiles | ||
|
||
### Requirements | ||
|
||
Mandatory requirements: | ||
- python >= 3.6 | ||
- a database supported by [django](https://docs.djangoproject.com/en/2.2/ref/databases/) | ||
- mongodb >= 3.0 | ||
|
||
See [settings.py](https://github.com/winds-mobi/winds-mobi-admin/blob/master/settings.py) | ||
|
||
### Python environment | ||
|
||
- `pipenv install` | ||
- `pipenv shell` | ||
|
||
### Create db schema | ||
|
||
- `python manage.py migrate` | ||
|
||
### Run the server | ||
|
||
- `python manage.py runserver` | ||
|
||
Licensing | ||
--------- | ||
|
||
Please see the file called [LICENSE.txt](https://github.com/winds-mobi/winds-mobi-admin/blob/master/LICENSE.txt) |
Oops, something went wrong.