Sunsurfers Application Backend
1.1K
We are the Sunsurfers, we live in the current moment - everyday, anytime. This application helps us to explore the world, to connect to each other, to be kind, to make a good deeds.
What's that about? It is about travelling, adventures, inspiration and self-realization.
This app will help you to find interesting places and open people near you and around the world. It will try to make you the Sunsurfer.
Clone the repo, create virtualenv and install requirements:
git clone [email protected]:ei-grad/sunsurfers.git
cd sunsurfers
virtualenv venv
source venv/bin/activate
pip install -r requirements.txt
You will need a PostgreSQL server with PostGIS extension to run Sunsurfers, if you don't have it yet, just follow the GeoDjango guide.
If you have PostgreSQL up and running, then create a sunsurfers database with PostGIS extension enabled:
createdb sunsurfers
psql sunsurfers <<< "create extension postgis"
Create the database structure and load some initial users and quests for development:
./manage.py migrate
./manage.py loaddata initial_data
Set some environment variables:
export SECRET_KEY=secret
export TGAUTH_DOMAIN=127.0.0.1
export TGAUTH_TOKEN=
# it would be available on the website anyway
export MAPBOX_TOKEN=pk.eyJ1IjoiZWktZ3JhZCIsImEiOiJjaWhnNW5qd3YwMDd1dHhtNHd1a2FuZ3k4In0.zkrRQneYHOJhLNAbsRuttw
export DEBUG=1
And then you should be able to run the development server:
./manage.py runserver
Which would be accessible on http://127.0.0.1:8000/.
Admin interface: /admin/ (admin password: admin)
REST API: /api/v1/
Content type
Image
Digest
Size
333 MB
Last updated
almost 8 years ago
docker pull eigrad/sunsurfers-backend