File tree Expand file tree Collapse file tree 1 file changed +36
-2
lines changed Expand file tree Collapse file tree 1 file changed +36
-2
lines changed Original file line number Diff line number Diff line change 26
26
</tr>
27
27
</table >
28
28
</div >
29
+ <br />
29
30
30
31
> This is the backend for the cookoff coding portal for the 9th edition of cookoff. (first working portal :skull : )
31
32
36
37
37
38
## Features
38
39
39
- - Insert list of features here
40
+ ### User
41
+ - Sign Up (``` /user/signup ``` )
42
+ - Login (``` /user/login ``` )
43
+
44
+ ### Questions
45
+ - Create Question (``` /question/create ``` )
46
+ - Get all Questions (``` /questions ``` )
47
+ - Get a Question (``` /question/{question_id} ``` )
48
+ - Get Question by Round (``` /question/round ``` )
49
+ - Update Question (``` /question ``` )
50
+ - Delete Question (``` /question/{question_id} ``` )
51
+
52
+ ### Testcases
53
+ - Create Testcase (``` /testcase ``` )
54
+ - Get Testcases by Question (``` /questions/{question_id}/testcases ``` )
55
+ - Get a Testcase (``` /testcase/{testcase_id} ``` )
56
+ - Update Testcase (``` /testcase/{testcase_id} ``` )
57
+ - Delete Testcase (``` /testcase/{testcase_id} ``` )
58
+
59
+ ### Submissions
60
+ - Submit Testcase (``` /submit ``` )
61
+ - Run Testcase (``` /runcode ``` )
62
+
63
+ ### Leaderboard
64
+ - Get Leaderboard (``` /leaderboard ``` )
65
+
40
66
41
67
## Dependencies
42
68
@@ -53,7 +79,7 @@ $ git clone https://github.com/CodeChefVIT/cookoff-9.0-backend.git
53
79
$ cd cookoff-9.0-backend
54
80
```
55
81
56
- #### Pre-requisites
82
+ #### Prerequisites
57
83
58
84
1 . Setup atlas
59
85
2 . Configure env (refer .env.example)
@@ -65,6 +91,14 @@ $ cd cookoff-9.0-backend
65
91
$ docker compose up --build -d
66
92
```
67
93
94
+ ``` sh
95
+ $ go install github.com/sqlc-dev/sqlc/cmd/sqlc@latest
96
+ ```
97
+
98
+ ``` sh
99
+ $ make generate
100
+ ```
101
+
68
102
``` sh
69
103
$ make apply-schema
70
104
```
You can’t perform that action at this time.
0 commit comments