Skip to content

Jodu555/Hosting-System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hosting-System

A Hosting-System

Todo

  • Think about the role system to prevent bs package creation
  • ProxmoxAPI
    • Move it to another git repo
    • Upload it to npm
    • maybe write a whole documentation
  • ConfigAPI
    • Generalized config api
  • Logging-API
    • Either write an own or search for a good one

ERM (Database Model)

This is the advanced DB model.

Architecture Model

This is the basic Architecture model.

Ideas

  • Make a thing like task Queue where new orders gets placed so the server dont gets flud by too many orders maybe with a static iteration time
  • Clarify the UUID's with there syntax like KVM-GS# where KVM stands for the type GS for GENerated services and the # is for the generation
  • Types of servers:
    • PACKage Server : Pre defined servers
    • GENerated Server : User defined servers
  • Think about a way to store all proxmox dedicated servers to distribute the servers
  • Think about a way to initialize all these servers (Idea: Backups upload api stuff etc.)
    • The Idea is: You only need to provide an ip, username and password to deploy a new dedi server
  • Think about a Way to deploy a new server as mc runner or ts3 bot runner

MVP - Minimum Viable Product

  • Authentication
  • Balance Increase
  • Product Ordering

Tech Stack

  • Front-end: Vue.js + Vuex + Vue-Router + Bootstrap
  • Other: MySql + Stripe + Socket.io
  • Back-end: Node.js + Express + ProxmoxApi

Notes

  • All the Balance/Money Realted stuff gets stored as cents so * 100 to get the corresponding € Value | It just makes the math so much easier

API Route Todos

  • All Routes are Prefixed with HOST/api/
  • /packages
    • GET : Shows all packages
    • POST : Creates a new package
  • /auth/info : Shows account info (Balance, Name, E-Mail)
  • /transactions : Shows all taken Transactions
    • /:ID : Shows a particular transaction
  • /products : Shows all Products
    • /:ID : Shows a particular Product
    • /service/:ID : Shows a particular Service (Backend decides from ID if GEN or PACK)

VM Creation Steps

  • There Under me is so much bs it turns out it was so much harder then it is there
  • Clone VM to x ID
  • Edit x VM to the new mac mem cpu disk
  • Configurate the internal file
  • But for me i let it stand their and write after this the real steps
  • Clone Vm to x ID
  • Edit x VM to the specs
  • Start The VM
  • Wait for the vm to start
  • Prepare the local network file
  • Upload the local network file
  • Configure the new Mac Address
  • Start the VM up again
  • Delete the local network file
  • Change the password

Stuff ive found to intercept and manipulate minecraft packets

Stretch

  • Live Chat
  • Ticket System
  • PDF Invoice