Skip to content

teamsfos/sfos-blog-api

Repository files navigation

SFOS Blog API

API that I created using HapiJS and JWT

Environment Variables

To run this project, you will need to add the following environment variables to your .env file

Run this command before change/add env

  cp .env.example .env

MONGODB_URL Guide

JWT_SECRET Example: foo

HOST

PORT

Run Locally

Clone the project

  git clone https://link-to-project

Go to the project directory

  cd my-project

Install dependencies

  npm install

Start the server

  npm run start

And go to http://localhost:3000/documentation to see what you can do

API Reference

go to http://localhost:3000/documentation

License

MIT