Coder Social home page Coder Social logo

eventparking-api's Introduction

Orlando Event API

Provides data via json endpoints about events in downtown Orlando. Current endpoints:

  • "/events/{YYYY}/{MM}" returns events in requested month
  • "/events/{YYYY}/{MM}/{DD}" returns events in requested day

Getting Started

This package is built on node.js, with numerous JavaScript libraries. It is designed to deploy to Heroku with environment variables preset (see deployment), a postgresql database, and scheduler to keep that database up to date.

Prerequisites

This package requires node and npm to be installed on the development machine. Having git would also be a good idea. If you want to deploy to Heroku, having the Heroku cli tools is a must. All other prerequisites can be installed once the project is on a machine with these tools.

Installing

For development, the best practice would be to fork the project into your personal repository and then git clone the project to your development machine. Once those dependencies are met and the project has been cloned to your machine, running "npm install --dev" will install the remaining dependencies. Running npm start will start a server on your localhost for testing.

Running the tests

Tests can be run via "npm test" in the project root directory

Deployment

In the application root on your development machine

  • Start a Heroku dyno == heroku create
  • Start a Heroku Postgresql instance == heroku addons:create heroku-postgresql:hobby-dev (hobby-dev == free)
  • Set Heroku environmental variables
    • heroku config:set PGDATABASE=[Database Name]
    • heroku config:set PGHOST=[Database Host]
    • heroku config:set PGPORT=[Database Port]
    • heroku config:set PGUSER=[Database User Name]
    • heroku config:set PGPASSWORD=[Database Password]
  • Commit changes if any == git commit -a
  • Push changes to heroku == git push heroku master

Built With

Contributing

Please read Contribuiting to Code for Orlando projects for details on our code of conduct, and the process for submitting pull requests to us.

Authors

See also the list of brigadeers who participate with Code for Orlando.

License

This project is licensed under the MIT License - see the LICENSE file for details

Acknowledgments

eventparking-api's People

Contributors

jmash avatar jsdelivrbot avatar londonatlas avatar rfonzi avatar tmarks-unikey avatar travis-konarik avatar

Watchers

 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.