Giter Club home page Giter Club logo

blog-api's Introduction

Blog API

Setup

  • fork and clone this repo
  • npm install
  • run node seed.js from the command line to setup your database (you'll need to have mongod running in the background)
  • to remove data from your database, run mongo from the command line, then use blog-api. run db.posts.remove() to remove all posts, or db.authors.remove() to remove all authors. You can always run node seed.js again to re-seed the database
  • download Postman if you haven't already. It will be helpful for testing your api

API Endpoints

Create an api with the following endpoints:

Bonuses

  • refactor your routes to use express router
  • Create a 'tag search' field. add an index.html file with a text input box. When you type something into the input box and hit 'Submit', your API should search all your posts for any posts that have a tag that matches the input text
  • create a 'text search' field. add an index.html file with a text input box. When you type something into the input box and hit 'Submit', your API should search all your posts' bodies for any posts that contain the search word anywhere in their body. In other words, if you type in 'JavaScript' your should get a response will all posts that contain the word 'JavaScript' anywhere in the body

blog-api's People

Contributors

nmadd avatar iliasssabillah avatar

Watchers

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