Giter Club home page Giter Club logo

trektheplanet's Introduction

trektheplanet

Website Map Overlay for TrekThePlanet website

Written using jQuery, Bootstrap, Google-maps API and hopefully Django Python!

This website will track and log the travels and expenses of TechnoHippy and CyberPunk Be able to click on a site we are at or going to visit to see information on the trip and a video diary listing from both of us. Along with highlight videoes.

The site will allow people to donate to us and/or offer advice.

Probably will add facebook functionality or sometype of commenting system to be able to talk to visitors.

To get started:

SHOWN HOW TO IN LINUX

start up the virtual enviroment:

source ./env/bin/activate

INSTALL PYTHON DEPENDENCIES:

pip install requirements.txt

  • don't use sudo or you will be installing dependencies to your computer and not the virtual enviroment

Make migrations and create superuser:

python manage.py makemirgrations 
python manage.py migrate
python manage.py createsuperuser
	-follow any prompts 

Run the server: python manage.py runserver

trektheplanet's People

Contributors

stcalica avatar

Stargazers

Adrian Cacho avatar

Watchers

James Cloos avatar  avatar Adrian Cacho avatar

Forkers

tortillaguy

trektheplanet's Issues

Add MySql Database

Have to get off the SQLite that Django uses my default and start running on an actual mult-user database.

format forms

learn to create and format forms manually. start changing the forms to that way

build up admin interface

need to build up admin interface so matti and i can change it on the go without logging into server through web interface

Get request from google

when adding location to the google request string need to convert to URL-encode new symbols

SMS from Server Alerts

I want an alert to all friends and family that sign up, it'll tell them that we have reached the next destination safely.

Also in future to send alerts to Matthias and myself about travel warnings.

Python REST APIs INFO

The content string of the info boxes will be filled from data read from multiple REST APIs.

Will start this using either facebook or gov rest apis.

Pythonize the paths

Instead of returning the objects constantly, want to return JSON as path arrays.

So the server does more work that it can handle, but the browser can speed up a bit now.

Add host to contacts database

Add the host to the contacts database from experience webpage

only add to the database if confirmation email is accepted.

Have python compute paths

I will have python compute the paths and spit it out as JSON for javascript to actually push the path into the map. Hoping that this reduces the time it takes to render map and etc.

AJAX calls will get the path and replace the current path.

Start Implementing Graph JS Algorithms

Database has a structure of a node or location already as such:

location {
host,
lat,
lng,
country,
current,
visited
}

We simply transcribe this from the server to the global window as JSON node objects.
So we can do a number of graph algorithms such as Dijkstra's or whatever with visited and current stored.

Now country will store all the nodes together and show lines from our current position to other positions that we can travel to inside that country. With country we have created strongly connected components(SCC).

Now the trick is to connect all the SCCs and make them connect without covering the map as a mess. I want one edge from one SCC to the next SCC determined by the best fit to user defined criteria.

This is the trick is to how to weigh the edges. I think I will do this first by proximity. And then add a way to add travel cost to an edge using google or some other service.

Connect Countries

Add column if location is a "base" location in Destinations Model

Then pull all that is a base and then connect all countries that are together.

Re-create using NodeJS and AngularJS

  • use AngularJS, Angular-UI, Google Maps, Instagram/Facebook login

  • Facebook login, create a hashtag to track, place pins with geotagging

  • add comments and places

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.