Giter VIP home page Giter VIP logo

node_template_server's Introduction

Node Server Template

Can be used as an API system, very fast, and compatible with any modern front end framework

Packages

  1. Express
  2. Mongo DB
  3. Websockets
  4. MVC Design Pattern
  5. Express Sessions
  6. Routing System
  7. Config files
  8. Body Parser
  9. Bcrypt
  10. All modules included

Setting up the project

  1. Install Node
  2. Install Mongo DB
  3. Run Mongo DB - command: mongod
  4. Run Start.js - command: node Start.js
  5. Check on http://127.0.0.1:8089/

All Endpoints

/api/users GET - Getting all users

/api/users POST - Creating a new user

/api/users/current GET - Get all currently logged users

/api/users/login POST - Login user

/api/users/logout GET - Logout currently logged user

/api/me GET - Get currently logged user

/api/:id/like GET - Like a user

/api/:id/unlike GET - Unlike a user

/api/most-liked GET - Get list of all liked users sorted from largest to smallest

/api/countries GET - Get all countries

/api/countries POST - Add new country

node_template_server's People

Contributors

theorcdev avatar dependabot[bot] 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.