项目作者: felipeorlando

项目描述 :
🎅 SecretSanta - MEAN with bg jobs and JWT auth
高级语言: JavaScript
项目地址: git://github.com/felipeorlando/secretsanta.git
创建时间: 2018-01-06T15:03:27Z
项目社区:https://github.com/felipeorlando/secretsanta

开源协议:

下载


secretsanta 🎄

This is as simple manager for CRUD users (admin) and persons, to match each person with a friend, aka SecretSanta game. 🎅

Requirements

  • Node 8.9.4
  • Nodemon
  • Mongo DB
  • Redis

How to run

API:

  1. > cd ./api
  2. > npm run dev

CLIENT:

  1. > cd ./client
  2. > npm start

Obs:

  • Set Mailgun key to API send emails on api/configs/index.js
  • Set API URL for client on client/src/config/app.constants.js

API Endpoints

Users:

  1. GET /users :: Return all users
  2. GET /users/:id :: Get an user by _id registered
  3. POST /users :: Create an user with params (name, email, password)
  4. PUT /users/:id :: Update an user with _id passed params (name, email, password)
  5. DELETE /users/:id :: Delete an user by _id

Persons:

  1. GET /persons :: Return all persons
  2. GET /persons/:id :: Get an person by _id registered
  3. POST /persons :: Create an person with params (name, email)
  4. PUT /persons/:id :: Update an person with _id passed params (name, email)
  5. DELETE /persons/:id :: Delete an person by _id

Auth:

  1. POST /login :: Returns JWT if params (email, password) matches with a registered user
  2. POST /check :: Return if a token is valid

MIT
©
Felipe Orlando