GithubHelp home page GithubHelp logo

express-messages's Introduction

Messages Express App

Build a server that implements all CRUD functionality for a message resource.

Getting Started

  • fork and clone this repository

  • In terminal at the root of this repo run npm install

  • Create any start scripts that would make your development easier

  • build CRUD routes for a message resource:

    • create a message /api/messages
    • retrieve a list of all messages (output should be an array of objects)/api/messages
    • update a specific message /api/messages/1
    • delete a specific message /api/messages/1
    • get one specific message /api/messages/1
  • Build a database table (write a schema) that can handle a message that looks like the following:

{
  id: 1,
  name:'Criminal',
  message:'What Are You?'
}

Hints for Backend

  • Use Postman to test your routes
  • Nodemon is your friend :)
  • Body-parser is fairly important

Advanced

  • Congratulations on building a fully functional CRUDdy RESTful server! If you need more practice with the server, build CRUD routes for another resource of your choosing (a user resource might be useful).
  • Then modularize your code (put each resource in its own js file). Use Express router.

Next Steps

  • Using Material-UI and React, build a styled frontend that will: show all messages, allow users to upload, edit, and delete messages.
  • Use Font Awesome Icons to add some style to your app.

Hints for Frontend Integration

  • You will need to revisit webpack/babel in order to set up your React development environment
  • Use express.static to have your server serve the React build directory

express-messages's People

Contributors

teddim avatar

Watchers

James Cloos 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.