forked fromchristylaguardia-student/carret
- Notifications
You must be signed in to change notification settings - Fork0
Alchemy Code Lab - 401 Team Project - Back End Auth Package
License
NotificationsYou must be signed in to change notification settings
sevfitz/carret
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Alchemy Code Lab - 401 Group Project
- Mark Petrie (petrie.mark@gmail.com)
- Stephanie Fitzgerald (s.e.v.fitzgerald@gmail.com)
- Christy La Guardia (christinelaguardia@gmail.com)
Our project is an authentication security solution that is intended for publication as an npm package. Developers can install our security package for use in their new and existing apps that require security. It uses a MongoDB to store user events such as signup, signin/login, failed login, etc., and other relevant user data.
For coding standards and user stories, see ourDEVELOPER.md.For a more detailed description and demo code for our endpoints, see thepresentation.md. We recommend using postman with these examples to quickly see the responses.
Lib Directory
- auth files
- models
- email- and ip-blacklist models
- event model
- user model
- routes
- see below for endpoints
- utils
- requests to Sqreen API are here
- app
- connect.js for the MongoDB connection
- error-handler
server - an http server
Tests Directory
- End to End tests
- Unit tests
- Some helper modules for e2e tests are included
Data Directory
- Seed data as json for use in postman and mongodb queries
Public Directory
- This is a minimal front-end for demo purposes
npm i
npm test
- Sqreen API
- bcrypt
- body-parser
- dotenv
- express
- jsonwebtoken-promisified
- mongoose
- morgan
- superagent
Method | Route |
---|---|
GET | /auth/verify |
POST | /auth/signup |
POST | /auth/signin |
GET | /me |
PATCH | /me |
DELETE | /me |
GET | /admin/users |
GET | /admin/users/:email |
PATCH | /admin/users/:email |
DELETE | /admin/users/:email |
GET | /admin/reports/events |
GET | /admin/reports/events?(query) |