Loopback 4 project with JWT authentication and PostgreSQL fully configured
git clone https://github.com/MMortaga/LoopbackHeadStart.git
cd LoopbackHeadStart
npm i
touch config.env
Use any code editor to add JWT_SECRET
, JWT_EXPIRATION_SECONDS
, and DATABASE_URL
JWT_SECRET=YOUR_JWT_SECRET
JWT_EXPIRATION_SECONDS=31536000
DATABASE_URL=postgres://YOUR_DB_CREDENTIALS
npm run prestart
npm run migrate
npm run start
Finally, head to http://localhost:3000/explorer
All contributions are welcome!