Advertisement
Guest User

Untitled

a guest
Sep 20th, 2018
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. When user buys, use AWS EC2 API to spin a t2.micro in Ohio, looks like it's limitless? Not sure, need to investigate.
  2.  
  3.  
  4. When we launch that, the server is installed and we install node + the package checker. We store back with the following:
  5. {
  6. user: 'ID',
  7. id: 'instance_id',
  8. dateStarted: DATE,
  9. status: 'UP | DOWN' (if a user stops using the service for more than 48hrs we shut off the server till they are ready to use it to reserve active time + save money)
  10. }
  11.  
  12. When a users sub runs out, we terminate the instance and reset for a new subscriber etc.
  13. **Parenthesisisisis encased selections are default**
  14. USER: {
  15. id,
  16. username,
  17. password,
  18. email,
  19. sub -> (1) | 3 | 6 | 12 (months),
  20. instance: {
  21. user,
  22. id,
  23. dateStarted,
  24. status
  25. }
  26. jobs: [
  27. {
  28. id,
  29. list,
  30. proxies,
  31. useProxies,
  32. notif -> EMAIL | WEBSITE | (ALL)
  33. }
  34. ],
  35. tickets: [
  36. {
  37. id,
  38. question,
  39. responses: [
  40. {
  41. id,
  42. sender,
  43. contents,
  44. date,
  45. }
  46. ],
  47. date
  48. }
  49. ]
  50. isAdmin
  51. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement