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.
- TypeScript
- Express
- Postgres
- Docker
You will need Node installed on your computer. You can find installation instructions for your machine here.
You will also need Docker installed.
- Instruction for Docker Desktop.
- Instructions for Docker Engine, (Linux only).
If you haven't already done so, clone the repository:
git clone git@github.com:kensonjohnson/express-auth-example.git
cd express-auth-exampleThen 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
- If you haven't already done so, clone the repository:
git clone git@github.com:kensonjohnson/express-auth-example.git
cd express-auth-example- Install dependencies:
npm install- Create database container:
docker-compose up -d- Create env file:
cp .env.example .env- Run the development server:
npm run devTBD