An open API service indexing awesome lists of open source software.

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

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