Git Product home page Git Product logo

asyncin-client's Introduction

##Sync In

This is a music compilation app that brings your music in one place! Users are able to create and save playlists from music/video results from the YouTube, Vimeo, and SoundCloud APIs. This was built with React/Redux, NodeJs, Mongo, Express, Passport, Google & Facebook OAuth2 Authentication.

Directory layout

.
├── public                  Html file
├── src                     Client-side code
│   ├── assets              Images, videos, etc.
│   ├── js                  JavaScript
│        └── actions        Redux actions
│        └── components     React components
│        └── reducers       Redux reducers
│        └── routes         React routes
│        └── store          React store


Deployment

Requires the Heroku CLI client.

Setting up the project on Heroku

  • Move into the project directory: cd ~/YOUR_PROJECTS_DIRECTORY/YOUR_PROJECT_NAME
  • Create the Heroku app: heroku create PROJECT_NAME
  • Instruct Heroku to install the development dependencies: heroku config:set NPM_CONFIG_PRODUCTION=false

Deploying to Heroku

  • Push your code to Heroku: git push heroku master

Create a new mlab database

  • Log in to https://mlab.com/
  • Create a new database by pressing Create new
  • On plan, click Single-node
  • Check Sandbox (It's the free one)
  • Scroll down to Database Name and enter your name of choice
  • Press Create new MongoDB deployment

Link your mlab database to your project

  • On your mlab dashboard, click the database that you would like to use
  • Press Users
  • Press Add database user
  • Type in credentials that you will remember and press Create
  • Copy and paste the link at the top that looks something like this: mongodb://:@ds117929.mlab.com:17929/dbname
  • In the heroku command line, set the database uri: heroku config:set DATABASE_URI=mongodb://:@ds117929.mlab.com:17929/dbname

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.