Coder Social home page Coder Social logo

blog-site's Introduction

Blog-Site

Build an application to display blog articles

Table fo Contents

  1. User SignUp
  2. User SignIn
  3. User Profile
  4. Publish
  5. Home
  6. Get Articles By Tag
  7. Commands Available

  1. Create User Account

    POST   /user/signup

      Request Body : {
        	"username" : "xyz",
            "age" : 23,
            "email" : "[email protected]",
            "password" : "xyz"
      }
    
    Response : {
        The user has been signed up successfully!
    }
    

  1. User SignIn

    POST   /user/login

    Request Body : {
        "email" : "[email protected]",
        "password" : "xyz"
    }
    
    Response : {
        "msg" : "Authentication has been successful",
        "token" : "JWT_TOKEN"
    }
    

  1. User Profile

    GET   /user/:username

    Authorization: "Beaver JWT_TOKEN"
    
    Response : {
        "data" : userData,                  // User profile info. is stored in data
        "articles" : userArticles;          // All the articles he/she published is stored in articles 
    }
    

  1. Publish Article

    POST   /blog/publish

    Authorization: "Beaver JWT_TOKEN"
    
    Response : {
        "description" : "",                 // Article description is stored in description
        "captionTagList" : ""               // All the tags related to an article stored in captionTagList 
    }
    

  1. Home Info

    GET   /blog/home

    Authorization: "Beaver JWT_TOKEN"
    
    Response : {
        "articles" : []                     // All the newest to oldest articles based on sorting are stored in this articles list
    }
    

  1. Get Articles By Tag

    GET   /tags/:tagname

    Authorization: "Beaver JWT_TOKEN"
    
    Response : {
        "articleData" : []                   // All the articles which have given "tagname" are stored in this articleData list
    }
    

  1. Commands Available

    node server.js or nodemon  // to run the node server
    npm test                  // for checking Unit Tests
    

blog-site's People

Contributors

utsavshukla0509 avatar utsavshukla avatar

Watchers

 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.