5 changed files with 94 additions and 4 deletions
@ -0,0 +1,23 @@
@@ -0,0 +1,23 @@
|
||||
<!DOCTYPE html> |
||||
<html lang="en"> |
||||
|
||||
<head> |
||||
<meta charset="UTF-8"> |
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
||||
<title>HackHost - Hackathon Platform</title> |
||||
<link rel="stylesheet" href="/static/css/style.css"> |
||||
</head> |
||||
|
||||
<body> |
||||
HI |
||||
<form method="post" action="/hackathon/create"> |
||||
<input type="text" name="hackathonName" id="hackathonName" placeholder="Hackathon name" /> |
||||
<textarea name="description" placeholder="Description"></textarea> |
||||
<input type="date" id="startDate" name="startDate"> |
||||
<input type="date" id="endDate" name="endDate"> |
||||
|
||||
<button type="submit">Submit</button> |
||||
</form> |
||||
</body> |
||||
|
||||
</html> |
||||
@ -0,0 +1,38 @@
@@ -0,0 +1,38 @@
|
||||
<!DOCTYPE html> |
||||
<html lang="en"> |
||||
|
||||
<head> |
||||
<meta charset="UTF-8"> |
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
||||
<title>HackHost - Hackathon Platform</title> |
||||
<link rel="stylesheet" href="/static/css/style.css"> |
||||
</head> |
||||
|
||||
<body> |
||||
{{if .Hackathons}} |
||||
<table border="1"> |
||||
<tr> |
||||
<th>ID</th> |
||||
<th>Name</th> |
||||
<th>Owner ID</th> |
||||
<th>Start Date</th> |
||||
<th>End Date</th> |
||||
<th>Provider</th> |
||||
</tr> |
||||
{{range .Hackathons}} |
||||
<tr> |
||||
<td>{{.Id}}</td> |
||||
<td>{{.HackathonName}}</td> |
||||
<td>{{.OwnerId}}</td> |
||||
<td>{{.StartDate}}</td> |
||||
<td>{{.EndDate}}</td> |
||||
<td>{{.Provider}}</td> |
||||
</tr> |
||||
{{end}} |
||||
</table> |
||||
{{else}} |
||||
<p>No hackathons found for provider: {{.Provider}}</p> |
||||
{{end}} |
||||
</body> |
||||
|
||||
</html> |
||||
@ -1,19 +1,42 @@
@@ -1,19 +1,42 @@
|
||||
userid user_type username capabilities provider avatar_url |
||||
1 hacker|repo|streamer codegirl 1,2,3,4,5 twitch|github ... |
||||
|
||||
2 .... nutshadedude 1,2,3 twitch ... |
||||
capability_id capability_name |
||||
1 join_hacka |
||||
2 |
||||
|
||||
hackathon_id hackathon_name owner_id |
||||
hackathon_id hackathon_name description owner_id |
||||
1 something cool 1 |
||||
|
||||
hackathon_cap |
||||
id capabilities_id hackathon_id |
||||
1 |
||||
|
||||
groups |
||||
id user_id_starter |
||||
1 1 |
||||
|
||||
|
||||
participants |
||||
p_id u |
||||
|
||||
hackathon_group |
||||
id group_id hackathon_id |
||||
|
||||
participants |
||||
userid, hackathon_id |
||||
|
||||
|
||||
SELECT h.*, p.* FROM hackathons h, participants p INNER JOIN participants ON participants.hackathon_id WHERE h.id = p.hackathon_tch |
||||
|
||||
# ACTUAL TODOS |
||||
- handle refreshing tokens |
||||
|
||||
/hackathon/twitch |
||||
/hackathon/twitch/codegirl007 |
||||
/hackathon/twitch/codegirl007/hackathon-name |
||||
|
||||
/groups/hackathon/create |
||||
/groups |
||||
|
||||
SELECT * FROM hackathon WHERE provider = ? AND owner_id = ? INNER JOIN users id ON hackathons.owner_id = users.id; |
||||
|
||||
Loading…
Reference in new issue