1.0.0 • Published 6 months ago

findslator-backend v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
6 months ago

Init .env file

MONGODB_DBNAME=findslator
MONGODB_URL=mongodb+srv://username:password@clusterxxx.mongodb.net/?retryWrites=true&w=majority
PORT=6060
CLIENT_ORIGIN_URL=http://localhost:4040
CLIENT_ORIGIN_URL_2=http://localhost:4200
AUTH0_AUDIENCE=https://dev-xxxx.auth0.com/api/v2/
AUTH0_DOMAIN=dev-xxxx.auth0.com

Usage pnpm install

  • Run local npm run start start:dev npm run start watch:dev
MongoDB connection successful
Server listening on http://localhost:6060
  • Check API run http://localhost:6060/api/health/check

Express.js/TypeScript: API Basic Access Control Code Sample

This TypeScript code sample demonstrates how to implement authorization in Express.js API servers using Auth0.

This code sample is part of the "Auth0 Developer Hub", a place where you can explore the authentication and authorization features of the Auth0 Identity Platform.

Visit the "Express.js/TypeScript Code Sample: Authorization For Basic APIs" page for instructions on how to configure and run this code sample and how to integrate it with a Single-Page Application (SPA) of your choice.

Express.js/TypeScript Code Sample: Authorization For Basic APIs

Why Use Auth0?

Auth0 is a flexible drop-in solution to add authentication and authorization services to your applications. Your team and organization can avoid the cost, time, and risk that come with building your own solution to authenticate and authorize users. We offer tons of guidance and SDKs for you to get started and integrate Auth0 into your stack easily.