GithubHelp home page GithubHelp logo

expressjs-projects's Introduction

ExpressJS-projects

This project is created by I.E.U. Juboraj Naofel. Technologies used,

  1. jwt
  2. express js
  3. node js
  4. mysql

Config database here :

  • api-app/routes/db.js

start 'token-generator-app' at port 4000

  1. cd token-generator-app
  2. npm start

create a separate terminal and start 'api-app' at port 3000.

  1. cd api-app
  2. npm start

generate token

  1. to login make a request to this endpoint "POST localhost:4000/login" at any restclient, Don't forget to add this json at body>json, { "username": "juboraj", "password": "naofel" }

  2. after the request entered, you should get an accesstoken at response body

  3. copy that access token

test api

  1. make a request to this endpoint "GET localhost:3000/users" to see users data
  2. make a request to this endpoint "POST localhost:3000/users" to add a user where, body>json: { "fname": "SampleFirstname", "lname": "Sample LastName", "cgpa": 4.00 }

auth> bearer: the token you have copied will be pasted

expressjs-projects's People

Contributors

juborajnaofel 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.