Coder Social home page Coder Social logo

full-authentication's Introduction

Authentication with Angular, ExpressJS, PostgresSQL

Getting started

PORT="your_port"
NODE_ENV="your_env"
SECRET_KEY="your_secret_key"
WHITE_LIST="your_whitelist"
DB_HOST="your_db_host"
DB_PORT="your_db_port"
DB_NAME="your_db_name"
DB_DIALECT="your_db_dialect"
DB_USER="your_db_user"
DB_PASS="your_db_pass"
SMTP_HOST="your_smtp_host"
SMTP_PORT="your_smtp_port"
SMTP_SECURE="your_smtp_secure"
SMTP_USER="your_smtp_user"
SMTP_PASS="your_smtp_password"
REDIS_URL="your_redis_url"
TURNSTILE_SITE_KEY="your_turnstile_site_key"
TURNSTILE_SECRET_KEY="your_turnstile_secret_key"
ACCESS_TOKEN_PUBLIC_KEY="your_access_token_public_key"
ACCESS_TOKEN_PRIVATE_KEY="your_access_token_private_key"
REFRESH_TOKEN_PUBLIC_KEY="your_refresh_token_public_key"
REFRESH_TOKEN_PRIVATE_KEY="your_refresh_token_private_key"
  • Example .env
PORT="3000"
NODE_ENV="development"
SECRET_KEY="JQpzoxGy0YMy8NbubdoH3Avcfk8qm8mO"
WHITE_LIST="http://localhost:4200"
DB_HOST="localhost"
DB_PORT="5432"
DB_NAME="tutorial_auth"
DB_DIALECT="postgres"
DB_USER="user_postgres"
DB_PASS="pass_postgres"
SMTP_HOST="smtp.ethereal.email"
SMTP_PORT="587"
SMTP_SECURE="false"
SMTP_USER="[email protected]"
SMTP_PASS="jn7jnAPss4f63QBp6D"
REDIS_URL="redis://localhost:6379"
TURNSTILE_SITE_KEY=""
TURNSTILE_SECRET_KEY=""
  • Install Dependencies
  1. cd <project_name>\backend npm install
  2. cd <project_name>\frontend npm install
  • Create database Postgres (Ex.name tutorial_auth)

  • Run Application

  1. cd <project_name>\backend npm run dev
  2. cd <project_name>\frontend ng serve

full-authentication's People

Contributors

12ain13owz avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.