Coder Social home page Coder Social logo

devconnector-rest-api's Introduction

DevConnector - Restful API Server

DevConnector is a social network for developers built with Node.js, Express and MongoDB. This repository includes RESTful API server code of DevConnector. It allows users to get the list of all registered developers, profile of each developer, and provides CRUD functionality for post, comment and like.

Quick Start

1) Clone the repository

$ git clone https://github.com/minashin/devconnector-backend.git

2) Install dependencies

$ cd devconnector-backend
$ npm install

3) Modify default.json

You will need to create a default.json in the config folder with

{
  "mongoURI": "YOUR_MONGO_URI",
  "jwtSecret": "YOUR_JWT_SECRET"
}

4) Run server

$ npm run backend

REST API Routes

Users:

Route Description
POST api/users Register a user

Profile:

Route Description
GET api/profile Get all profiles
POST api/profile Create or update user profile
DELETE api/profile Delete user profile
GET api/profile/me Get current user profile
GET api/profile/:id Get profile by user id

Auth:

Route Description
GET api/auth Get a user by token
POST api/auth Authenticate a user

devconnector-rest-api's People

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.