Skip to content

The backend for investment capital. Made using nodejs, typescript and mongoDB.

Notifications You must be signed in to change notification settings

Investment-Capital/backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

92 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Investment Capital

  • This is a market/economy style simulation website
  • Currently a very early WIP
  • View .env.example for the env data

Other Repos

Authorization

  • Authorization is setup in 2 UUIDs separated by a " " space.
  • The first bit is public, and the users id
  • The second bit is private, a key to their account when paired with the id

Tax

  • Tax is paid when selling/recieving income
  • NOT when buying stocks
  • Stock tax is dynmanic, the more of one stock you have, the higher tax for that one stock

How to make myself/others admin permissions

  • You have to manually set the "admin" flag on the investor to true in the db

Password Storage

  • bcrypt library for encryption

Password Environment Variables

  • ENCRYPTION_SALT_ROUNDS is the amount of salt rounds when encrypting the password, higher = takes more time to encrypt, but more secure
  • MIN_PASSWORD_LENGTH is the length (in charactors) the passwords must be

About

The backend for investment capital. Made using nodejs, typescript and mongoDB.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published