Giter Site home page Giter Site logo

n1ckp / spotmybands Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 4.95 MB

Code for supporting the Django and React powered SpotMyBands site at https://spotmybands.n1ck.dev

Home Page: https://spotmybands.n1ck.dev

Makefile 0.27% JavaScript 8.77% SCSS 17.63% TypeScript 71.41% Handlebars 1.23% HTML 0.67% Procfile 0.03%
reactjs maps heroku webpack expressjs typescript

spotmybands's Introduction

SpotMyBands ๐ŸŽธ

spotmybands.n1ck.dev

The place for quickly spotting events for the bands you listen to.

Uses Spotify and Songkick developer APIs.

Express for backend, React for frontend.


Local Development

1. Obtain and set API keys

{
  "prod": {
    "SONGKICK_API_KEY": "<key>",
    "SPOTIFY_CLIENT_ID": "<key>",
    "SPOTIFY_CLIENT_SECRET": "<key>"
  },
  "dev": {
    "SONGKICK_API_KEY": "<key>",
    "SPOTIFY_CLIENT_ID": "<key>",
    "SPOTIFY_CLIENT_SECRET": "<key>"
  }
}
  • In order to set API keys as environment variables in your Heroku project for production, I've made a handy script. Simply run npm run heroku:setkeys

2. Run server and client in separate terminal processes

make server # Runs Express server backend

make client # Runs webpack dev server for React app.

And you're away ๐Ÿš€

Deploying to Heroku

  1. Ensure you have a Heroku account and the Heroku CLI installed, then go to project root.
  2. heroku login
  3. heroku create
  4. heroku buildpacks:set heroku/nodejs
  5. git push heroku master
  6. heroku open to see your deployed dyno

spotmybands's People

Contributors

n1ckp avatar dependabot[bot] 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.