Passport
library.Features
Typescript
/ SQLite Persistence / TypeORM / Joy (validation)passport-jwt
strategy.Links
login
/logout
and register
actions. By default, the guest users are redirected to the login page. Once the user is authenticated all private pages are accessible. Here are the steps to compile the product.Dependencies
Step #1 - Clone the project
Step #2 - Install dependencies via NPM or yarn
Step #3 - Start in development mode
Step #4 - Configure the backend -src/config.js
API Server Description
passport-jwt
strategy is used to handle the Email/Password authentication. After a successful login, the generated token is sent to the requester.Dependencies
command-line
utilityStep #1 - Clone the API Server from Github
Step #2 - Install dependencies via NPM or yarn
Step #3 - Run the SQLite migration viaTypeORM
Step #3 - Start in development mode
PORT
specified in .env
file, default value 5000
, same as the one expected by the front end.