Coder Social home page Coder Social logo

expressjs-starter-kit's Introduction

JavaScript Style Guide

JavaScript Style Guide

STACK


HOW TO RUN

  • Copy variables.env.sample to variables.env & custom it
npm start

// or

npm run watch
  • Data sample:
npm run seed

npm run seed:delete

npm run seed:refresh
  • Lint:
npm run lint

ROUTES / API

  • Root url:
curl -X GET \
  http://localhost:3000/
  • API Authenticate:
curl -X POST \
  http://localhost:3000/api/authenticate \
  -H 'content-type: application/json' \
  -d '{
	"email": "[email protected]",
	"password": "123456"
}'
  • API Get users:
curl -X GET \
  http://localhost:3000/api/users \
  -H 'authorization: Bearer {{YOUR_TOKEN}}'
  • API Sign up:
curl -X POST \
  http://localhost:3000/api/sign-up \
  -H 'content-type: application/json' \
  -d '{
	"name": "Mail1",
	"email": "[email protected]",
	"password": "123456"
}'
  • API Confirm sign up:
curl -X GET \
  'http://localhost:3000/api/confirm-sign-up?token={{YOUR_TOKEN}}'
  • API Test axios:
curl -X GET \
  http://localhost:3000/api/test-axios \
  -H 'authorization: Bearer {{YOUR_TOKEN}}'
  • API Forgot password:
curl -X POST \
  http://localhost:3000/api/forgot-password \
  -H 'content-type: application/json' \
  -d '{
	"email": "[email protected]"
}'
  • API Confirm reset password:
curl -X GET \
  'http://localhost:3000/api/confirm-resest-password?token={{YOUR_TOKEN}}'
  • API Get user current:
curl -X GET \
  http://localhost:3000/api/get-user-current \
  -H 'authorization: Bearer {{YOUR_TOKEN}}'

REFERENCES

expressjs-starter-kit's People

Contributors

ntxinh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 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.