Skip to content

Repository files navigation

Express Auth Example

This is a small example on how to setup traditional email/password authentication. The setup shown here is rather minimal, and should only serve to learn about auth. Production apps should use more secure methods than password authentication.

Features

  • TypeScript
  • Express
  • Postgres
  • Docker

Prerequisites

You will need Node installed on your computer. You can find installation instructions for your machine here.

You will also need Docker installed.

Quick Start

If you haven't already done so, clone the repository:

git clone git@github.com:kensonjohnson/express-auth-example.git 
cd express-auth-example

Then you can install dependencies with npm install

Run the provided helper script: npm run configure
Note: This only works on Linux and Mac. For Windows, see Manual Setup below.

Finally, you can run the dev server with npm run dev

Manual Setup

  1. If you haven't already done so, clone the repository:
git clone git@github.com:kensonjohnson/express-auth-example.git 
cd express-auth-example
  1. Install dependencies:
npm install
  1. Create database container:
docker-compose up -d
  1. Create env file:
cp .env.example .env
  1. Run the development server:
npm run dev

Usage

TBD

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages