Giter Site home page Giter Site logo

geonewsapp's Introduction

Quick helpful tip, if you are creating a NEW Django project on Windows:

This command may not work on windows django-admin startproject {name_of_your_app}

Equivalent command for windows is: python -m django startproject {name_of_your_app}

Group partners do not need to run these commands for this project. This is just a helpful tidbit for future projects.


Getting Started:

First, you need to export the required Google and Bing API keys as OS 'env' variables. To simplify this, run the following script found in the top level GeoNewsApp folder: chmod +x export_keys.sh source ./export_keys.sh If you experience errors with the script, such as 'bad interpreter' or 'command not found' it is possible the EOF markers has been changed if converting between Unix to Windows. An example easy fix is to use a program like Notepad ++ to open the script, and look at the bottom right corner where you'll see an OS reference. Change this to Unix if you're running this from Linux. Alternatively, you can manually export the keys that you see in the script: export GOOGLE_API_KEY=<add google key> export BING_API_KEY=<add bing key>

If you do not do the above steps, users will encounter a 500 error due to exceptions raised by 'views.py' as the API keys won't be accessible to the server.

Next, prepare your Django setup. You can do this with the help of 'requirements.txt' python3 -m pip install -r requirements.txt

Run the server... when you're in the parent directory:

python3 manage.py runserver

and then go to wherever your localhost server starts running

(i.e localhost:8000 or http://127.0.0.1:8000/ etc... )

Please note that this 'readme' is a quickstart. For full instructions, see the 'Admin Guide' section of the full GeoNews documentation offered through CMSC_495. That section includes additional information on deploying a public facing server, as well as troubleshooting recommendations for common mistakes.

geonewsapp's People

Contributors

alanbanks229 avatar panthorsaurusrex avatar kenne88 avatar

Watchers

James Cloos avatar  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.