Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ysavary committed May 19, 2019
0 parents commit 8820819
Show file tree
Hide file tree
Showing 30 changed files with 1,693 additions and 0 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
winds_mobi_admin/local_settings.py
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*.pyc
.idea/
winds_mobi_admin/local_settings.py
1 change: 1 addition & 0 deletions .python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.7.3
16 changes: 16 additions & 0 deletions Dockerfile
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"]
661 changes: 661 additions & 0 deletions LICENSE.txt

Large diffs are not rendered by default.

24 changes: 24 additions & 0 deletions Pipfile
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"
293 changes: 293 additions & 0 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

40 changes: 40 additions & 0 deletions README.md
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)
Loading

0 comments on commit 8820819

Please sign in to comment.