Giter Site home page Giter Site logo

tuner-react's Introduction

tuner-react

Pursuit Logo

Tuner Front-End

Getting Started

  • Fork this repo
  • Clone the forked repository
  • cd to the directory where you cloned it
  • npx create-react-app tuner-front-end
  • npm start to start the react app on localhost:3000

Note: Remember to git add, git commit and git push regularly

Using the Tuner API that you built, you are going to create a frontend-only app.

Don't forget to keep your back-end API running during this build/

Nav Bar

At the top of your app you should have a navigation bar.

  • It displays a links to the route (/songs) at the top of the page.

Your app should also include the following routes:


/songs

  • Displays a list of song.title, song.is_favorite, song.artist and song.time that are clickable to take the user to /songs/:id IMPORTANT - be sure it goes to the song's id NOT the array position. Since we are now using a database you should use the id.
  • Has a button that takes users to the /songs/new view
Inspiration

IMPORTANT

Your page should

/songs/:index

  • Displays the details of each log
    • name
    • artist
    • album
    • is_favorite
    • time
  • Displays two buttons
    • back, takes the user back to the /songs view
    • delete, deletes the log and takes the user back to the /songs view

BONUS

  • button for edit - which takes the user to the edit form for this song
Inspiration

/songs/new

  • Displays a form with the following inputs and appropriate labels:

    • name (text)
    • artist (text)
    • album (text)
    • is_favorite (boolean)
    • time (text)
Inspiration

Bonuses

  • Add an edit route /songs/:id/edit
  • Add an edit form that is pre-filled with the log to edit
Inspiration

  • Style the app
  • Use react-bootstrap
  • Use react-transition-group to transition between pages Demo
  • write your own tests
  • add a 404 page
  • add functionality that when a user presses the delete button a confirmation appears first

tuner-react's People

Contributors

krafalski 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.