-
Notifications
You must be signed in to change notification settings - Fork 0
/
route.js
1278 lines (1123 loc) · 35.4 KB
/
route.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
const router = require("express").Router();
const Database = require("./model");
const generateApiKey = require("generate-api-key");
const nodemailer = require("nodemailer");
const qr = require("qrcode");
const fs = require("fs");
var md5 = require("md5");
async function checkAPIkey(key, requiredScope) {
let hash = md5(key);
//verify key
const res = await Database.selectScopes(hash);
if (res.length <= 0) {
throw new Error("Api Key not found.");
return;
} else if (res.length > 1) {
throw new Error("Duplicate Api Keys found.");
return;
}
const scopes = res[0].scopes;
if (!hasScope(scopes, requiredScope)) {
throw new Error("Missing required scopes.");
return;
}
}
function hasScope(scopesRaw, required) {
const scopes = scopesRaw.split(",");
//master
if (
(scopes.length > 1 && scopes.includes("*")) ||
(scopes.length == 1 && scopes == "*")
) {
return true;
}
//required.*
if (
(scopes.length > 1 && scopes.includes(required.split(".")[0] + ".*")) ||
(scopes.length == 1 && scopes == required.split(".")[0] + ".*")
) {
return true;
}
//required.required
if (
(scopes.length > 1 && scopes.includes(required)) ||
(scopes.length == 1 && scopes == required)
) {
return true;
}
//}
//incorrect scope or error
return false;
}
router.get("/", async (req, res) => {
try {
const scope = await checkAPIkey(
"7f51d72.f5e2247e589b3fcfbdd8",
"user.list"
);
} catch (err) {
res.status(400).json({ error: err.message });
return;
}
});
/**
* key.list
*/
router.get("/:key/key/list", async (req, res) => {
//check for prerequisites
let key = req.params.key;
try {
let result = await checkAPIkey(key, "key.list");
} catch (err) {
res.status(400).json({ error: err });
return;
}
//get all api keys
try {
const keys = await Database.selectKeys();
res.json({
message: "success",
data: keys,
});
} catch (err) {
res.status(400).json({ error: err.message });
return;
}
});
/**
* key.generatemaster
*/
router.get("/:key/key/generatemaster", async (req, res) => {
//check for prerequisites
let key = req.params.key;
try {
let result = await checkAPIkey(key, "*");
} catch (err) {
res.status(400).json({ error: err });
return;
}
//generate new key
let prefix = generateApiKey({ method: "bytes", length: 7 });
let affix = generateApiKey({ method: "bytes", length: 20 });
let apikey = prefix + "." + affix;
let hash2 = md5(apikey);
try {
await Database.insertKey("Master", prefix, hash2, "*");
res.json({
message: "success",
apikey: apikey,
});
} catch (err) {
res.status(400).json({ error: err });
return;
}
});
/**
* event.list
*/
router.get("/:key/event/list", async (req, res) => {
//check for prerequisites
let key = req.params.key;
try {
let result = await checkAPIkey(key, "event.list");
} catch (err) {
res.status(400).json({ error: err });
return;
}
try {
const events = await Database.selectEvents();
res.json({
message: "success",
data: events,
});
} catch (err) {
res.status(400).json({ error: err });
return;
}
});
/**
* event.create
*/
router.post("/:key/event/create", async (req, res) => {
//check for prerequisites
let key = req.params.key;
try {
let result = await checkAPIkey(key, "event.create");
} catch (err) {
res.status(400).json({ error: err });
return;
}
//get body data
var errors = [];
//var status = 0;
//var statusChanged = false;
if (!req.query.name) {
errors.push("New events must have a name");
}
if (!req.query.identifier) {
errors.push("New events must have an identifer");
} else if (req.query.identifier.includes(" ")) {
errors.push("Event identifiers cannot include spaces");
} else if (req.query.identifier.length > 24) {
errors.push("Event identifiers cannot be longer than 24 characters");
}
//res.json({data: req.query});
//return;
if (req.query.status) {
if (
+req.query.status > 1 ||
+req.query.status < 0 ||
!Number.isInteger(+req.query.status)
) {
errors.push("Event status can only have values 0,1");
} else {
//status = req.query.status;
//statusChanged = true;
}
}
if (errors.length) {
res.status(400).json({ error: errors.join(", ") });
return;
}
try {
const event = await Database.insertEvent(
req.query.identifier,
req.query.name,
req.query.description,
req.query.status
);
const table = await Database.createEventTable(req.query.identifier);
res.json({
message: "success",
});
} catch (err) {
res.status(400).json({ error: err });
return;
}
});
/**
* event.update
*/
router.post("/:key/event/update", async (req, res) => {
//check for prerequisites
let key = req.params.key;
try {
let result = await checkAPIkey(key, "event.update");
} catch (err) {
res.status(400).json({ error: err });
return;
}
//get body data
var errors = [];
//var status = 0;
//var statusChanged = false;
if (!req.query.identifier) {
errors.push("Query must include an identifier property");
} else if (req.query.identifier.includes(" ")) {
errors.push("Event identifiers cannot include spaces");
} else if (req.query.identifier.length > 24) {
errors.push("Event identifiers cannot be longer than 24 characters");
}
//res.json({data: req.query});
//return;
if (req.query.status) {
if (
+req.query.status > 1 ||
+req.query.status < 0 ||
!Number.isInteger(+req.query.status)
) {
errors.push("Event status can only have values 0,1");
} else {
//status = req.query.status;
//statusChanged = true;
}
}
if (errors.length) {
res.status(400).json({ error: errors.join(", ") });
return;
}
try {
const event = await Database.updateEvent(
req.query.identifier,
req.query.name,
req.query.description,
req.query.status
);
res.json({
message: "success",
});
} catch (err) {
res.status(400).json({ error: err });
return;
}
});
/**
* event.checkin
*/
router.post("/:key/event/checkin", async (req, res) => {
//check for prerequisites
let key = req.params.key;
try {
let result = await checkAPIkey(key, "event.checkin");
} catch (err) {
res.status(400).json({ error: err });
return;
}
let prefix = key.split(".")[0];
//get body data
var errors = [];
if (!req.query.eventIdentifier) {
errors.push("Query must include an eventIdentifier property");
}
if (!req.query.userBarcode) {
errors.push("Query must include a userBarcode property");
}
if (errors.length) {
res.status(400).json({ error: errors.join(", ") });
return;
}
try {
//get event count
const eventCount = await Database.selectEventsCount(
req.query.eventIdentifier
);
if (eventCount[0].count <= 0) {
res.status(400).json({ error: "Event not found" });
return;
}
//get event status
const eventStatus = await Database.selectEventsStatus(
req.query.eventIdentifier
);
if (eventStatus[0].status <= 0) {
res.status(400).json({ error: "Event has been disabled" });
return;
}
//check whether user exists
const userExists = await Database.selectUserExists(req.query.userBarcode);
if (userExists[0].count <= 0) {
res.status(400).json({
error: "User does not exist",
});
return;
}
//check whether user checkin exists
const checkedInExists = await Database.selectUserCheckedInExists(
req.query.eventIdentifier,
req.query.userBarcode
);
if (checkedInExists[0].count > 0) {
//check whether user checked in
const checkedIn = await Database.selectUserCheckedIn(
req.query.eventIdentifier,
req.query.userBarcode
);
if (checkedIn[0].count > 0) {
res.status(400).json({
error: "User is already checked in for this event",
});
return;
}
//update existing checkin
await Database.updateUserCheckIn(
req.query.eventIdentifier,
req.query.userBarcode,
1,
prefix
);
} else {
//insert user into event checkin table
const user = await Database.checkinUser(
req.query.eventIdentifier,
req.query.userBarcode,
1,
prefix
);
}
res.json({ message: "success" });
} catch (err) {
res.status(400).json({ error: err });
return;
}
});
/**
* event.uncheckin
*/
router.post("/:key/event/uncheckin", async (req, res) => {
//check for prerequisites
let key = req.params.key;
try {
let result = await checkAPIkey(key, "event.uncheckin");
} catch (err) {
res.status(400).json({ error: err });
return;
}
let prefix = key.split(".")[0];
//get body data
var errors = [];
if (!req.query.eventIdentifier) {
errors.push("Query must include an eventIdentifier property");
}
if (!req.query.userBarcode) {
errors.push("Query must include a userBarcode property");
}
if (errors.length) {
res.status(400).json({ error: errors.join(", ") });
return;
}
try {
//get event status
const eventStatus = await Database.selectEventsStatus(
req.query.eventIdentifier
);
if (eventStatus[0].status <= 0) {
res.status(400).json({ error: "Event has been disabled" });
return;
}
//check whether user exists
const userExists = await Database.selectUserExists(req.query.userBarcode);
if (userExists[0].count <= 0) {
res.status(400).json({
error: "User does not exist",
});
return;
}
//update existing checkin
await Database.updateUserCheckIn(
req.query.eventIdentifier,
req.query.userBarcode,
0,
prefix
);
res.json({ message: "success" });
} catch (err) {
res.status(400).json({ error: err });
return;
}
});
/**
* event.status
*/
router.get("/:key/event/status", async (req, res) => {
//check for prerequisites
let key = req.params.key;
try {
let result = await checkAPIkey(key, "event.status");
} catch (err) {
res.status(400).json({ error: err });
return;
}
let prefix = key.split(".")[0];
//get body data
var errors = [];
if (!req.query.eventIdentifier) {
errors.push("Query must include an eventIdentifier property");
}
if (errors.length) {
res.status(400).json({ error: errors.join(", ") });
return;
}
try {
//get event status
const eventStatus = await Database.selectEventsStatus(
req.query.eventIdentifier
);
//get users attending
const userAttending = await Database.selectUserCountAttending(
req.query.eventIdentifier
);
//get users total
const userTotal = await Database.selectUserCount();
res.json({
message: "success",
data: {
attended: userAttending[0].count,
total: userTotal[0].count,
status: eventStatus[0].status,
},
});
} catch (err) {
res.status(400).json({ error: err });
return;
}
});
/**
* event.checkedin
*/
router.get("/:key/event/checkedin", async (req, res) => {
//check for prerequisites
let key = req.params.key;
try {
let result = await checkAPIkey(key, "event.checkedin");
} catch (err) {
res.status(400).json({ error: err });
return;
}
//get body data
var errors = [];
if (!req.query.eventIdentifier) {
errors.push("Query must include an eventIdentifier property");
}
if (!req.query.userBarcode) {
errors.push("Query must include a userBarcode property");
}
if (errors.length) {
res.status(400).json({ error: errors.join(", ") });
return;
}
try {
//check whether user checked in
const checkedIn = await Database.selectUserCheckedIn(
req.query.eventIdentifier,
req.query.userBarcode
);
res.json({ message: "success", data: checkedIn });
} catch (err) {
res.status(400).json({ error: err });
return;
}
});
/**
* user.list
*/
router.get("/:key/user/list", async (req, res) => {
//check for prerequisites
let key = req.params.key;
try {
let result = await checkAPIkey(key, "user.list");
} catch (err) {
res.status(400).json({ error: err });
return;
}
try {
const users = await Database.selectUsers();
res.json({
message: "success",
data: users,
});
} catch (err) {
res.status(400).json({ error: err });
return;
}
});
/**
* user.create
*/
router.post("/:key/user/create", async (req, res) => {
//check for prerequisites
let key = req.params.key;
try {
let result = await checkAPIkey(key, "user.create");
} catch (err) {
res.status(400).json({ error: err });
return;
}
//get body data
var errors = [];
if (!req.query.userName) {
errors.push("Query must include userName property");
}
if (!req.query.userEmail) {
errors.push("Query must include userEmail property");
} else if (!req.query.userEmail.includes("@")) {
errors.push("User email not in valid format");
}
if (req.query.barcodeNum) {
if (!Number.isInteger(+req.query.barcodeNum)) {
errors.push("User barcodeNum must be an integer");
}
}
if (errors.length) {
res.status(400).json({ error: errors.join(", ") });
return;
}
let barcode = req.query.barcodeNum;
if (!barcode) {
barcode = +generateApiKey({ length: 11, pool: "0123456789" });
}
try {
const user = await Database.insertUser(
barcode,
req.query.userName,
req.query.userEmail
);
res.json({
message: "success",
});
} catch (err) {
res.status(400).json({ error: err });
return;
}
});
/**
* user.remove
*/
router.post("/:key/user/remove", async (req, res) => {
//check for prerequisites
let key = req.params.key;
try {
let result = await checkAPIkey(key, "user.create");
} catch (err) {
res.status(400).json({ error: err.message });
return;
}
//get body data
var errors = [];
if (!req.query.barcodeNum) {
errors.push("Query must include barcodeNum property");
}
if (errors.length) {
res.status(400).json({ error: errors.join(", ") });
return;
}
try {
console.log(await Database.removeUser(req.query.barcodeNum));
res.json({
message: "success",
});
} catch (err) {
res.status(400).json({ error: err });
return;
}
});
/**
* event.remove
*/
router.post("/:key/event/remove", async (req, res) => {
//check for prerequisites
let key = req.params.key;
try {
let result = await checkAPIkey(key, "event.create");
} catch (err) {
res.status(400).json({ error: err });
return;
}
//get body data
var errors = [];
if (!req.query.identifier) {
errors.push("Query must include identifier property");
}
if (errors.length) {
res.status(400).json({ error: errors.join(", ") });
return;
}
try {
await Database.removeEvent(req.query.identifier);
await Database.dropEventTable(req.query.identifier);
res.json({
message: "success",
});
} catch (err) {
res.status(400).json({ error: err });
return;
}
});
/**
* user.update
*/
router.post("/:key/user/update", async (req, res) => {
//check for prerequisites
let key = req.params.key;
try {
let result = await checkAPIkey(key, "user.update");
} catch (err) {
res.status(400).json({ error: err });
return;
}
//get body data
var errors = [];
if (!req.query.barcodeNum) {
errors.push("Query must include barcodeNum property");
}
if (!req.query.userName && !req.query.userEmail) {
errors.push("Query must include userName or userEmail property");
}
if (req.query.userEmail && !req.query.userEmail.includes("@")) {
errors.push("User email not in valid format");
}
if (errors.length) {
res.status(400).json({ error: errors.join(", ") });
return;
}
try {
const user = await Database.updateUser(
req.query.barcodeNum,
req.query.userName,
req.query.userEmail
);
res.json({
message: "success",
});
} catch (err) {
res.status(400).json({ error: err });
return;
}
});
/**
* user.email
*/
router.get("/:key/user/email", async (req, res) => {
//check for prerequisites
let key = req.params.key;
try {
let result = await checkAPIkey(key, "user.email");
} catch (err) {
res.status(400).json({ error: err });
return;
}
if (!req.query.barcodeNum) {
res.status(400).json({ error: "Query must include barcodeNum property" });
return;
}
try {
const email = await Database.selectUserEmail(req.query.barcodeNum);
if (!email[0].email) {
res.status(400).json({ error: "User not found with given barcodeNum" });
return;
}
//send email
qr.toDataURL(req.query.barcodeNum, function (err, url) {
if (err) {
res.status(400).json({ error: err });
return;
}
//console.log(url)
let transporter = nodemailer.createTransport({
host: "smtp.gmail.com",
port: 587,
auth: {
user: process.env.EMAIL_USERNAME,
pass: process.env.EMAIL_PASSWORD,
} /*
dkim: {
domainName: "hacklytics2022.com",
keySelector: "key1",
privateKey: fs.readFileSync("./certificates/dkim/dkim.pem", "utf8"),
cacheDir: "/tmp",
cacheTreshold: 100 * 1024,
},*/,
});
//console.log(url)
message = {
from: process.env.EMAIL_USERNAME,
to: email[0].email,
subject: "QR Code - Hacklytics 2022",
html: `<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional //EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:v="urn:schemas-microsoft-com:vml" lang="en">
<head>
<link rel="stylesheet" type="text/css" hs-webfonts="true"
href="https://fonts.googleapis.com/css?family=Lato|Lato:i,b,bi">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link
href="https://fonts.googleapis.com/css2?family=Red+Hat+Text:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap"
rel="stylesheet">
<title>Hacklytics 2022 Emailer</title>
<meta property="og:title" content="Email template">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style type="text/css">
table {
table-layout: fixed;
}
a {
text-decoration: underline;
color: inherit;
color: blue;
}
h1 {
font-size: 32px;
}
h2 {
font-size: 28px;
font-weight: 900;
}
img {
max-width: 100%;
}
p {
font-weight: 100;
}
td {
text-align: center;
vertical-align: middle;
}
td.main {
text-align: left;
}
#email {
margin: auto;
width: 600px;
background-color: white;
}
button {
font: inherit;
background-color: rgba(32, 163, 158, 1);
border: none;
padding: 10px;
text-transform: uppercase;
letter-spacing: 2px;
font-weight: 900;
color: white;
border-radius: 5px;
box-shadow: 3px 3px #ADCEF2;
text-align: center;
}
.subtle-link {
font-size: 9px;
text-transform: uppercase;
letter-spacing: 1px;
color: #CBD6E2;
}
#applyButton {
/*position: fixed;*/
box-sizing: border-box;
width: fit-content;
/*right: 15px;*/
padding: 15px 10px;
background-color: #7e3f73;
/*top: 15px;*/
color: #fff;
font-size: 26px;
font-weight: 600;
font-family: 'Red Hat Text';
text-decoration: none;
border-radius: 5px;
/*z-index: 9999;*/
}
.heading {
position: relative;
color: rgba(32, 163, 158, 1);
font-size: 50px;
text-transform: uppercase;
text-align: center;
}
.center {
margin-left: auto;
margin-right: auto;
}
#qr-image {
display: block;
margin: 0 auto;
}
</style>
</head>
<body bgcolor="#F5F8FA"
style="width: 100%; margin: auto 0; padding:0; font-family:Lato, sans-serif; font-size:18px; color:#33475B; word-break:break-word; text-align: left;">
<! View in Browser Link -->
<div id="email">
<! Banner -->
<table cellpadding="0" cellspacing="0px" bgcolor="#B7CCEC" role="presentation" class="center"
style="color: white; text-align: center; white-space: nowrap" width="100%">
<tr>
<th style="color: white; text-align: center; padding: 0px">
<img style="padding: 0px;" src="https://i.ibb.co/3kmZTTh/Screenshot-2022-02-02-at-5-20-30-PM.png"
alt="Hacklytics-2022-header" border="0">
</th>
</tr>
</table>
<p style="line-height: 0;font-size: 12px" align="center">Brought to you by <a href="https://datasciencegt.org"
style="color:rgba(32, 163, 158, 1);" target="_blank">Data Science at GT</a>, a 501(c)(3) organization</p>
<! First Row -->
<table role="presentation" border="0" cellpadding="0" cellspacing="10px" style="padding: 0px 30px 30px 30px;">
<tr>
<td class="main">
<h1 align="center">What next?</h1>
<p>
Please show us this QR code when you check in at the event.
</p>
<img id="qr-image" width="200" height="200" src="cid:qrcode@send" />
<p>
Now that you've been accepted into Hacklytics 2022, here are the next steps:
</p>
<ul>
<li> Fill out the <a
href="https://docs.google.com/forms/d/e/1FAIpQLSciOboudzy4FVOOd5bEgkmc44JbJw5B0s7etkjSZnsz6q_nig/viewform"
target="_blank">confirmation form</a> before Thursday, 17th February 2022.
<li> Join the <a href="https://discord.gg/9aZUUUDf" target="_blank">Discord</a> and interact with
hackers, talk to sponsors, form teams, and ask us your questions. We will be using it for all
important communication.
<li> Register for Hacklytics 2022 on <a href="https://hacklytics-2022.devpost.com/"
target="_blank">Devpost</a>.
<li> New to hacking? Check out <a href="https://guide.mlh.io/">this guide</a> that covers everything
you will need.
</ul>
<h3>Messages from our Sponsors</h3>
<p>
<strong>CREATE-X</strong>: If you are selected as one of the top 3 winners, we offer you an automatic
acceptance to our <a
href="https://create-x.gatech.edu/#:~:text=CREATE%2DX's%20Startup%20Launch%20is,fully%20functioning%20and%20viable%20startups."
target="_blank">Startup Launch</a> program, should you choose to continue your project. We will
provide you with mentors, contacts, and all the resources you need to turn your project into a
real-world product.
</p>
<p>
<strong>DeepNote</strong>: Deepnote is a collaborative Python notebook that runs in your browser. We
will be providing you with lightning fast GPUs upon which you can train your ML models. Our
easy-to-use software will also make it incredibly simple for you to visualize data in a plethora of
different formats.
</p>
<p>
Feel free to reach out to us at <a target="_blank"
href="mailto:hello@hacklytics.io">hello@hacklytics.io</a> for any questions!
</p>
<p>
See you there, <br>The Hacklytics Team
</p>
<!-- <br> -->
<p style="font-size: 12px; color: gray">
While you're at it, check out our <a href="https://hacklytics.io/" target="_blank">website</a> and
drop a follow on our <a href="https://www.instagram.com/hacklytics/">Instagram!</a>
</p>
</td>
</tr>
</table>
<! Footer -->
<table role="presentation" width="100%" class="center">
<tr>
<td bgcolor="gray" align="center" style="color: white;" width="50%">