https://github.com/felipeorlando/secretsanta
🎅 SecretSanta - MEAN with bg jobs and JWT auth
https://github.com/felipeorlando/secretsanta
angularjs express jwt mailgun mean mongodb redis
Last synced: 3 months ago
JSON representation
🎅 SecretSanta - MEAN with bg jobs and JWT auth
- Host: GitHub
- URL: https://github.com/felipeorlando/secretsanta
- Owner: felipeorlando
- Created: 2018-01-06T15:03:27.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-08-22T08:37:47.000Z (almost 8 years ago)
- Last Synced: 2026-04-05T19:29:39.573Z (3 months ago)
- Topics: angularjs, express, jwt, mailgun, mean, mongodb, redis
- Language: JavaScript
- Homepage: https://github.com/felipeorlando/secretsanta
- Size: 528 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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:**
```
> cd ./api
> npm run dev
```
**CLIENT:**
```
> cd ./client
> 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:**
```
GET /users :: Return all users
GET /users/:id :: Get an user by _id registered
POST /users :: Create an user with params (name, email, password)
PUT /users/:id :: Update an user with _id passed params (name, email, password)
DELETE /users/:id :: Delete an user by _id
```
**Persons:**
```
GET /persons :: Return all persons
GET /persons/:id :: Get an person by _id registered
POST /persons :: Create an person with params (name, email)
PUT /persons/:id :: Update an person with _id passed params (name, email)
DELETE /persons/:id :: Delete an person by _id
```
**Auth:**
```
POST /login :: Returns JWT if params (email, password) matches with a registered user
POST /check :: Return if a token is valid
```
MIT
©
Felipe Orlando