Code Monkey home page Code Monkey logo

whereintheworld's Introduction

WITW

๐Ÿšง This app is still in alpha development and we don't recommend using it yet.

Development server

The code for the server is located in the backend directory.

1. Install dependencies

  1. Install Postgres.app and follow the instructions to add it to your path.

  2. Set a virtualenv (optional)

  3. Install the OS & pip dependencies.

# On MacOS with brew
brew install gdal libgeoip

# On Ubuntu
sudo add-apt-repository ppa:ubuntugis/ppa
sudo apt-get update
sudo apt-get install libgeoip-dev libgdal-dev gdal-bin
sudo apt-get install postgresql-12-postgis-3

# On everything
pip install -r requirements-dev.txt
pip install -r requirements.txt

Running on M1 To run successfully on M1, set the following env vars

export GDAL_LIBRARY_PATH=/opt/homebrew/lib/libgdal.dylib
export GEOS_LIBRARY_PATH=/opt/homebrew/lib/libgeos_c.dylib

2. Create database and start backend

psql
CREATE DATABASE whereintheworld;
CREATE USER whereintheworld WITH PASSWORD 'whereintheworld';
ALTER ROLE whereintheworld SUPERUSER;

**Migrate the database

python manage.py migrate
python manage.py cities --import=all

3. Get Google Oauth configs

https://console.cloud.google.com/apis/credentials

3. Start the app

The code for the frontend is located in the src directory. You can start the entire app (frontend & backend) as follows:

yarn
./bin/start

The server is now running at http://localhost:8000/. Warning: Don't visit localhost:3000 as the raw frontend will not work as expected.

whereintheworld's People

Contributors

benjackwhite avatar fuziontech avatar paolodamico avatar stokkie90 avatar timgl avatar

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.