Coder Social home page Coder Social logo

react-evernote-guided-project-sfo-web-030920's Introduction

README: React Evernote

Task Lister is making its return in React! However, this time we'll be kicking it up a notch and using that same backend to drive an Evernote-like frontend built in React.

Your goal will be to complete the baseline deliverables using the provided starter code and then make this project your own by building out unique stretch goals. Some suggestions are listed below, but try to be creative!

Requirements

  • Complete all of the Deliverables.
  • Build out at least 1 stretch goal feature.

Setup

The codebase is split up into a Rails API backend and a React frontend. Everything is contained in this single repository. Your Rails code is located inside of the backend folder and your React code is located inside of the frontend folder.

Each of those folders has a README file with setup instructions. For conciseness, those instructions are copy pasted here:

Frontend

# from within this directory:
npm install
PORT=4000 npm start

This React app will be running on http://localhost:4000.

Backend

# from within this directory:
bundle install
rails db:create db:migrate db:seed
rails s

Your Rails backend API will be running on http://localhost:3000.

User ID

The seed file should create one user for you, so your default USER_ID should be 1. If that doesn't work, debug it with the /api/v1/users route as shown below.

Routes

Method Route Headers Body
GET /api/v1/users
GET /api/v1/notes
POST /api/v1/notes 'Content-Type': 'application/json'
'Accept': 'application/json'
title, body, user_id
PATCH /api/v1/notes/:id 'Content-Type': 'application/json'
'Accept': 'application/json'
title, body, user_id

Tips:

  • Test out your routes with Postman to see how they work and what they return.
  • Look at the source code! There are many more routes that are not listed that may make your life easier. Use those development skills and hack the code!

Provided Code

Backend

  • The entire backend API is complete for the baseline deliverables.
  • You should not have to modify this code unless you want to add stretch features that are not currently supported by this API.

Frontend

  • All CSS styles are provided for you.
  • Many components are provided for you, but most are not completely functional. It is your job to read the code and figure out how to incorporate it into your app.

Deliverables

Look at the gif below to see how the app should look and behave. These are the baseline deliverables you need to complete:

Viewing and Displaying Notes

  • Display all notes in the left sidebar.
  • Displayed sidebar notes should show the title and a truncated body.
  • When clicking a note from the sidebar, display its contents in the right panel.

result

Editing Notes

  • When displaying a note in the right panel, show an Edit button.
  • Clicking the Edit button will allow the user to edit the title and body in the right panel.
  • When in edit mode, also show a Save button which saves the note via a PATCH request.
  • When in edit mode, also show a Cancel button which discards any changes and reverts back to displaying the note.
  • Clicking a different note while in edit mode should discard your changes and display the new note instead.

result

Creating Notes

  • At the bottom of your left sidebar, show a New button.
  • Clicking New will create a new note via a POST request with some default title and body.
  • This new note should appear in the sidebar.

result

Filtering Notes

  • Implement the filter to search through your notes list by title.

result

Stretch Goals

When you are finished with the Delieverables, you can build out any new features that you want. This is your chance to be creative and make your project unique!

Some suggestions:

  • Add the ability to filter by body, date created, date edited, etc.
  • Sorting by date created, date edited, alphabetical, etc.
  • Use react-router to create a multi-page app
  • User signup & login
  • Sharing notes with other users
  • Rich text formatting
  • Tagging
  • Emailing notes

react-evernote-guided-project-sfo-web-030920's People

Contributors

calamityadam avatar dependabot[bot] avatar hysan avatar ihollander avatar lizbur10 avatar notnotdrew avatar rrcobb avatar

Watchers

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