Skip to content

An authentication server built in Typescript with Passport & Oauth2orize

License

Notifications You must be signed in to change notification settings

tlip/oauthentic

Repository files navigation

oauthentic

An Typescript authentication service bootstrap built with Passport and Oauth2orize. User sessions are stored in a Redis cache with user database managed by TypeORM.

Getting Started

  • Make sure you have at least node v10.13.0+ and yarn v1.13.0+ installed.
  • Make sure you have both Redis and a relational database installed locally and running.
  • Clone the repo
$ git clone https://github.com/flamingYawn/oauthentic.git
$ cd oauthentic
  • Install dependencies
$ yarn
  • Install ts-node and typeorm globally
$ yarn global add ts-node typeorm
  • Create a new database named oauth in whatever RDB you're using.
  • Replace the example environment variables in .env.
  • Start the server for the first time
$ yarn start
  • Run the initial DB migration
$ typeorm migration:run

And then you should be good to go.