Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- When user buys, use AWS EC2 API to spin a t2.micro in Ohio, looks like it's limitless? Not sure, need to investigate.
- When we launch that, the server is installed and we install node + the package checker. We store back with the following:
- {
- user: 'ID',
- id: 'instance_id',
- dateStarted: DATE,
- 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)
- }
- When a users sub runs out, we terminate the instance and reset for a new subscriber etc.
- **Parenthesisisisis encased selections are default**
- USER: {
- id,
- username,
- password,
- email,
- sub -> (1) | 3 | 6 | 12 (months),
- instance: {
- user,
- id,
- dateStarted,
- status
- }
- jobs: [
- {
- id,
- list,
- proxies,
- useProxies,
- notif -> EMAIL | WEBSITE | (ALL)
- }
- ],
- tickets: [
- {
- id,
- question,
- responses: [
- {
- id,
- sender,
- contents,
- date,
- }
- ],
- date
- }
- ]
- isAdmin
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement