Coder Social home page Coder Social logo

demo-remi's Introduction

Demo Remitano Application

Install / Build Project

From root project, run below code, because I init project with yarn workspace, so we only run yarn install from root.

  # From root project
  yarn install

Backend project

Before running the project backend, please copy the .env.example file on backend root folder and rename the file to .env so that the project can map information from the .env file to map to the system's enviroment variables, after run code below

  cd packages/backend
  • Run localhost
yarn dev
  • Build localhost && start prod
yarn build && yarn start

Frontend project

Before running the project backend, please copy the .env.example file on backend root folder and rename the file to .env so that the project can map information from the .env file to map to the system's enviroment variables, after run code below

  cd packages/frontend
  • Run localhost
yarn dev
  • Build localhost && start prod
yarn prod

Authentication with Register

alt text

Frontend will provide UI/UX so that user can input information like . Here the password is encrypted with Cryptojs with the Hash Key stored in the env in the pods in the container. And the Hash Key in FE and BE is the same, because BE needs to decrypt the password sent from Frontend.

After decrypting the password from the frontend, the backend will encrypt the decrypted password with the generated hash key.

The server will use encrypted password information and hash key to store data in the user account

Authentication with Login

alt text

Frontend will provide UI/UX so that user can input information like . Here the password is encrypted with Cryptojs with the Hash Key stored in the env in the pods in the container.

The server will get the password information sent from the client to decrypt to get the real password. And will use this password to compare with the decrypted password from the backend

The server will get the account information sent from the Frontend by email, to get the corresponding account including the hash key and hash password. The server will use the hash key to decrypt the password hash and compare it with the password from the client

demo-remi's People

Contributors

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