Giter Site home page Giter Site logo

playlist's Introduction

A Few Notes on This app

Running the server locally

Foreman is used to manage the environment. There isn't much environment to manage at this time, but foreman is easy enough to work with. See the Procfile for command details.

foreman run server - runs the site at: http://localhost:4000/ foreman run console - rails console foreman run annotate - annotates the models. see: https://github.com/ctran/annotate_models

Deploying to Heroku

git push heroku master - deploys master to heroku heroku logs -t - see what the server is doing

The app should be running at: https://protected-hollows-43986.herokuapp.com/

Application Notes:

Three Models:

User - generated using the Devise gem, and can have many playlists

Playlist - belongs to a user, and can have many tracks

Track - belongs to a Playlist

Database integrity (what there is of it, anyway) is managed using postgres foreign key constaints

The UI is generated using standard rails templates.

The 'add track' button uses a bit of JavaScript to extend the playlist form.

Basic styles courtesy of Materialize: https://materializecss.com/

When a user adds a track, if they fail to fill out all the fields the track data is ignored. Not a great user experience :)

playlist's People

Contributors

usufruct avatar

Watchers

 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.