GithubHelp home page GithubHelp logo

mpiorowski / pern-auth Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 1.7 MB

PERN stack app with authorization using JWT tokens

License: MIT License

JavaScript 1.72% HTML 2.88% CSS 8.89% TypeScript 85.91% Shell 0.60%

pern-auth's Introduction

PostgreSQL, Express, React and Node.js app written in Typescript

PERN stack app with authorization using JWT tokens

  • Fully working login solution using tokens
  • New user registry via email with secuirty code
  • Reset password via email with security code

Dependencies

npm, docker, docker-compose

Dev deployment

  • start database using docker-compose
sh db-start.sh
  • copy config file and make neccessary changes. Database connection is already set. Email is needed for new accounts.
cp server/src/config/app-config.ts.dist server/src/config/app-config.ts
  • run two terminals for server and client
cd server && npm i && npm start
cd client && npm i && npm start

-- username: admin
-- password: pass

Prod deployment

Whole production deployment is done using docker.

  • copy config file and make neccessary changes to database and email credentials.
cp server/src/config/app-config.ts.dist server/src/config/app-config.ts
  • run docker-compose
cd docker
sh prod.sh

pern-auth's People

Contributors

lsnmateuszp avatar mpiorowski avatar

Stargazers

 avatar

Watchers

 avatar  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.