https://github.com/codebynao/boilerplate-hapi-mongo-auth
A boilerplate for Hapi containing Mongoose setup and auth example with JWT
https://github.com/codebynao/boilerplate-hapi-mongo-auth
authentication hapi jwt mongodb mongoose nodejs
Last synced: 24 days ago
JSON representation
A boilerplate for Hapi containing Mongoose setup and auth example with JWT
- Host: GitHub
- URL: https://github.com/codebynao/boilerplate-hapi-mongo-auth
- Owner: codebynao
- Created: 2020-11-15T12:39:18.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2020-11-15T12:47:51.000Z (about 5 years ago)
- Last Synced: 2025-03-01T14:32:46.377Z (10 months ago)
- Topics: authentication, hapi, jwt, mongodb, mongoose, nodejs
- Language: JavaScript
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# boilerplate-hapi-mongo-auth
A boilerplate for Hapi containing Mongoose setup and auth example with JWT
## 🚀 Quick start
1. **Clone the git repository**
```bash
# cloning git repository into a new `newProject` folder
git clone https://github.com/codebynao/boilerplate-hapi-mongo-auth.git newProject
# install project dependencies
cd newProject && npm install
```
2. **Setup Environment variables**
```
MONGO_URI=xxx
SECRET_KEY=xxx
```
3. **Start Developing**
**Development version**
```bash
npm start
```
**Production version**
```bash
npm run build
```
4. **Checkout the project!**
> Project is running at http://localhost:3000