Skip to content

samialateya/Express-Auth-Starter

Repository files navigation

About Express Auth Starter

It's a Express authentication markdown that will help you to understand and grasp all the underlying functionality for API Authentication and Authorization with JWT which include:

  • Authentication Routes
  • Middleware
  • Controllers
  • Models
  • Error Handling Classes
  • Form Requests
  • Response Resources
  • Mailers
  • Events

User Features

User has the following features provided as Web and API

  • Routing
  • Email & Password Authentication
  • Login, Register, Update Profile
  • Forget Password functionality
  • Email Verification functionality
  • Social Login with google and facebook login
  • Protecting some routes against un verified emails
  • Protecting routes against admin sessions
  • Protecting some routes against guests
  • File Upload

Installation

First clone this repository, install the dependencies, and setup your .env file.

git clone https://github.com/samialateya/Express-Auth-Starter
npm install
cp .env.example .env
- Update your ENV file with the email driver credentials and social login keys
- Find the API Requests Samples in ./requests.rest file

Database

PostgreSQL is the only supported database for this project.
find the SQL dump on ./database/postgres.sql
create new database and pass the database credentials to the env file.

Contributing

Thank you for considering contributing to Express AuthStarter. Feel free to fork this repo and submit a pull request with your updates

Errors and Vulnerabilities

Please open an issue on Github if you discover a vulnerability or you face an error with this repo. and feel free to contact me at samialateya@hotmail.com

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published