npm install -g nodemon
npm install
cp .env-example .env
MONGO_DB=mongodb://localhost:27017/mongo_db
npm run dev
npm run eslint
- Get your legacy token https://api.slack.com/legacy/custom-integrations/legacy-tokens
- Documentation and methods for slack https://api.slack.com/methods
Use Insomnia to test the API endpoints, use the insomnia.json file that already has all the necessary endpoints. Download Insomnia.
| Module | Action | Method | Endpoint |
|---|---|---|---|
| Register | Create | POST | http://localhost:3000/register |
| Login | Login | POST | http://localhost:3000/auth/login |
| Logout | Logout | POST | http://localhost:3000/auth/logout |
| Users | All | GET | http://localhost:3000/users |
| Users | Create | POST | http://localhost:3000/users |
| Users | Update | PUT | http://localhost:3000/users/:id |
| Users | Show | GET | http://localhost:3000/users/:id |
| Users | Delete | DELETE | http://localhost:3000/users/:id |
| Package | Description |
|---|---|
| bcryptjs | Encrypt password |
| debug | For Debug |
| dotenv-extended | To work files .env |
| eslint | Code standard |
| express | Framework express |
| consign | For load modules |
| http-errors | Controllers http errors |
| method-override | Overrise methods in express |
| moment | To work with dates |
| mongoose | ODM for database MongoDB |
| mongoose-paginate-v2 | Paginate for mongoose |
| mongoose-validator | Validator inputs for mongoose |
| winston | Logs generator |
