Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
141 commits
Select commit Hold shift + click to select a range
e84a5db
Update module go-pg/pg/v9 to v9.1.6
renovate-bot May 21, 2020
d6502c0
Merge pull request #8 from npalladium/renovate/github.com-go-pg-pg-v9…
npalladium May 21, 2020
f4a3f36
Started cleaning up repo
May 22, 2020
167ac2f
Started cleaning up repo
May 22, 2020
da597d7
Started cleaning up repo
May 22, 2020
348d62d
Started cleaning up repo
May 22, 2020
6c60ec1
Clean up ignored files
May 22, 2020
bb86607
Create Basic README file
RachitKeertiDas May 23, 2020
329f0a8
Get Question, Add User
May 23, 2020
6c91805
Merge branch 'master' of github.com:npalladium/cryptex
May 23, 2020
f7819d5
Gofmt
May 23, 2020
b5d77b3
Add pre-commit hook
npalladium May 25, 2020
9bfb830
Update README.md
npalladium May 25, 2020
ccdf014
Merge pull request #10 from npalladium/develop
npalladium May 25, 2020
bce14a0
Add new Route for LeaderBoard requests
RachitKeertiDas May 29, 2020
341c044
ServeJSON should gracefully fail incase of an error
RachitKeertiDas May 29, 2020
c3d2e34
Add required changes
RachitKeertiDas May 29, 2020
b2ac5d3
Add project-wide .gitignore
npalladium May 30, 2020
5010cfd
Setup yarn and eslint
npalladium May 30, 2020
de004a4
Merge branch 'develop' of https://github.com/npalladium/cryptex into …
RachitKeertiDas May 30, 2020
0f5dc99
Switch to logrus for error logging
RachitKeertiDas May 30, 2020
374757d
Add route for fetching leaderboard
RachitKeertiDas May 31, 2020
2f642ea
Merge branch 'develop' of https://github.com/npalladium/cryptex into …
RachitKeertiDas May 31, 2020
c1f8f22
Got rid of cards
Jun 4, 2020
8e69474
Got rid of cards
Jun 4, 2020
67935ee
Added Check Answer
angad11121 Jun 4, 2020
2d776d3
Merge branch 'develop' of https://github.com/npalladium/cryptex into …
RachitKeertiDas Jun 4, 2020
60edb1c
Add gofmt in pre-commit githook
RachitKeertiDas Jun 4, 2020
8b7d992
Fix pre-commit Hook
RachitKeertiDas Jun 5, 2020
c42ddde
Fixed the answer hash
angad11121 Jun 5, 2020
2740a4a
Set up routes, level component, login component, register component
Jun 5, 2020
cdcbcf1
Set up routes, level component, login component, register component
Jun 5, 2020
2f19058
Set up routes, level component, login component, register component
Jun 5, 2020
6e88908
Set up routes, level component, login component, register component
Jun 5, 2020
3943648
Friendship ended with yarn, npm is my new best friend
tanmayr2 Jun 7, 2020
6820a9c
Friendship ended with yarn, npm is my new best friend
tanmayr2 Jun 7, 2020
ecf7dab
Add ESLint for JS files
tanmayr2 Jun 7, 2020
79f8f75
Add ESLint for JS files
tanmayr2 Jun 7, 2020
f7f03ab
Add notice about linting
tanmayr2 Jun 7, 2020
f97ff8c
Add notice about linting
tanmayr2 Jun 7, 2020
292fbc9
Fixed all linting errors and warnings
Jun 7, 2020
b1b62ab
Fixed all linting errors and warnings
Jun 7, 2020
099e592
Fixed Proptypes bug
Jun 8, 2020
15fbe28
Fixed linting error by installing prop-types
Jun 8, 2020
0f1c37e
Deleted auth folder from server directory
Jun 8, 2020
7cdc0dd
Auth
Jun 10, 2020
bb733f1
Implmented authentication - password auth and Oauth2 Google on backend
Jun 10, 2020
1435ca0
Add sample config.json
Jun 10, 2020
d2990a5
Removed config.json
Jun 10, 2020
28247a5
Cleaning up config
Jun 10, 2020
6b4ee89
Added password auth + Google Oauth2 to the backend, changed location …
Jun 10, 2020
f06dee8
Added password auth + Google Oauth2 to the backend, changed location …
Jun 10, 2020
e6724ff
Merge branch 'auth' of github.com:npalladium/cryptex into auth
Jun 11, 2020
9421253
Auth on frontend
Jun 12, 2020
acd0745
Fix for cors
Jun 12, 2020
cc39e11
Added root_url to cors
Jun 12, 2020
5c2012a
Add Leaderboard Interface
RachitKeertiDas Jun 14, 2020
9bb7268
Merge pull request #23 from npalladium/LeaderboardInterface
Jun 14, 2020
b9468b5
Fixed all linting errors and warnings
Jun 14, 2020
fec1eff
Fixed all linting errors and warnings and fixed underline on leaderbo…
Jun 14, 2020
c9a8693
Auth + frontend
Jun 15, 2020
e627bba
Merge remote-tracking branch 'origin/develop' into frontend
Jun 15, 2020
7d90599
[WIP] Bottom alignment for Portal Component, dynamic row count depend…
Jun 17, 2020
34b88b9
[Completed] Finished layout, answer history
Jun 24, 2020
e1411dd
Fixed all lint errors and warnings
Jun 24, 2020
818e5a6
Minor fixes to sidebar
Jun 27, 2020
9611729
[WIP] Added team functions
Jun 30, 2020
54a7ff6
Updated Chakra to latest
Feb 25, 2021
a6b3a13
Leaderboard: Fix Chakra-v1 Regressions.
RachitKeertiDas Feb 26, 2021
81ab083
[WIP] Make Portal Adaptive
RachitKeertiDas Feb 26, 2021
41846ec
Use hooks, functions instead of classes
RachitKeertiDas Feb 26, 2021
e7a2a32
[WIP] Add Auth0 integration.
RachitKeertiDas Feb 27, 2021
45c811f
Added Auth0 Client
Mar 1, 2021
edc06f2
Using envs
Mar 1, 2021
8387ea9
Added Auth0 Client
Mar 1, 2021
b35810c
Merge remote-tracking branch 'origin/auth0-frontend' into backend
Mar 1, 2021
033e158
[WIP] Started integration of frontend with backend
Mar 2, 2021
551cf70
Basic version done
Mar 3, 2021
b71c208
Basic version done
Mar 3, 2021
0d437ed
Basic version done
Mar 3, 2021
a6d6712
Basic version done
Mar 3, 2021
11c2f3f
Caddyfile fixed
Mar 3, 2021
23e2304
Caddyfile fixed
Mar 3, 2021
33e682a
Import Landing Page
angad11121 Mar 3, 2021
97955a4
Responsiveness
Mar 4, 2021
19fb438
Add Initial Rules Component. Fix broken Links
RachitKeertiDas Mar 4, 2021
bd1bb55
Grid QUestion
Mar 4, 2021
6513889
Merge remote-tracking branch 'origin/landing' into backend
Mar 4, 2021
e5d0819
Fix Root View Error
angad11121 Mar 4, 2021
8d0d78b
Fix Scroll-X Landing
angad11121 Mar 4, 2021
4c2fe63
Change Logo.
RachitKeertiDas Mar 5, 2021
3dc1934
Add Basic Leaderboard Functionality.
RachitKeertiDas Mar 5, 2021
ad89022
Some style fixes.
RachitKeertiDas Mar 5, 2021
1e25881
Navbar fixed
Mar 5, 2021
78ff3f1
Merge branch 'backend' of github.com:adaephonben/cryptex into backend
Mar 5, 2021
06fba8e
Merge branch 'backend' of github.com:adaephonben/cryptex into backend
Mar 5, 2021
0199059
Logout fixed
Mar 5, 2021
912afe6
Get Reminder fixed
Mar 5, 2021
12580f9
Do not show history and Countdwon on Mobile.
RachitKeertiDas Mar 5, 2021
5300e09
Portal:Enlarge the image as much possible
RachitKeertiDas Mar 5, 2021
9705f84
Previous Questions
Mar 5, 2021
2857d06
Merge branch 'backend' of github.com:adaephonben/cryptex into backend
Mar 5, 2021
a765dcc
Initial version of falling cards question added
tarun-menta Mar 5, 2021
dfee7c8
Merge branch 'backend' of https://github.com/AdaephonBen/cryptex into…
tarun-menta Mar 5, 2021
fa5e788
Implement a new question type.
RachitKeertiDas Mar 5, 2021
51f96a9
Solitaire done
Mar 5, 2021
16dc25e
Merge branch 'backend' of github.com:adaephonben/cryptex into backend
Mar 5, 2021
0bba3a0
ASCII done
Mar 5, 2021
65b54b6
Responsiveness for Bonus Page.
RachitKeertiDas Mar 5, 2021
7f090b1
Make LeaderBoard a single-pager.
RachitKeertiDas Mar 5, 2021
2a0a42d
Dive in fixed
Mar 5, 2021
e91f5ad
Merge branch 'backend' of github.com:adaephonben/cryptex into backend
Mar 5, 2021
55f2732
Manifest changes
Mar 5, 2021
3f41055
Fixed some bugs, Added new type
Mar 5, 2021
040657f
Fixed some bugs, Added new type
Mar 5, 2021
a6cf40f
Prevent Background from jiggling around.
RachitKeertiDas Mar 5, 2021
4c38cc2
Fixed some bugs, Added new type
Mar 5, 2021
1712694
Merge branch 'backend' of github.com:adaephonben/cryptex into backend
Mar 5, 2021
761d725
Prevent Background from jiggling around.
RachitKeertiDas Mar 5, 2021
42e393b
Fixed some bugs, Added new type
Mar 5, 2021
f70afc4
Fixed some bugs, Added new type
Mar 5, 2021
38529c5
Fixed some bugs, Added new type
Mar 5, 2021
e6ef20f
Junk non-functional Subscription Letter.
RachitKeertiDas Mar 5, 2021
230737f
Fixed navbar
Mar 5, 2021
04ee8d4
Production server
Mar 5, 2021
7cea5bb
Modify Guidelines.
RachitKeertiDas Mar 5, 2021
18f7cb2
It's Showtime!
RachitKeertiDas Mar 5, 2021
24d5c30
Fixed CSS issues
Mar 5, 2021
1c6809a
Fixed CSS issues
Mar 5, 2021
2a7fae2
Download component
Mar 5, 2021
e31e29d
Fixing bugs in Productions
RachitKeertiDas Mar 5, 2021
bc51a72
Fix Bonus Log Destination
angad11121 Mar 6, 2021
1074d5b
Add bonus.csv
angad11121 Mar 6, 2021
5d601fa
Animation component
Mar 7, 2021
f70be6c
The end
Mar 7, 2021
7023070
The end
Mar 7, 2021
103c39d
The end
Mar 7, 2021
028153b
The end
Mar 7, 2021
5382f0e
The end
Mar 7, 2021
20304b6
Fix Previous Question Ordering
angad11121 Mar 9, 2021
fee3f14
Merge branch 'master' into backend
RachitKeertiDas Jul 12, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 4 additions & 1 deletion .gitignore
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
server/server
server/config/config.json
config/config.json

# Local Netlify folder
.netlify
10 changes: 10 additions & 0 deletions Caddy/Caddyfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
cryptex.elan.org.in
encode gzip

route /api/* {
reverse_proxy server:8080
}

route /* {
reverse_proxy client:3000
}
358 changes: 358 additions & 0 deletions DB/init.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,358 @@
--
-- PostgreSQL database dump
--

-- Dumped from database version 13.2
-- Dumped by pg_dump version 13.2

SET statement_timeout = 0;
SET lock_timeout = 0;
SET idle_in_transaction_session_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SELECT pg_catalog.set_config('search_path', '', false);
SET check_function_bodies = false;
SET xmloption = content;
SET client_min_messages = warning;
SET row_security = off;

SET default_tablespace = '';

SET default_table_access_method = heap;

--
-- Name: BonusQuestion; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public."BonusQuestion" (
id smallint NOT NULL,
question jsonb NOT NULL,
question_type smallint NOT NULL,
answer character(64) NOT NULL,
lifeline_id smallint NOT NULL,
available_from timestamp with time zone NOT NULL,
available_to timestamp with time zone NOT NULL
);


ALTER TABLE public."BonusQuestion" OWNER TO postgres;

--
-- Name: Bonues_question_id_sec; Type: SEQUENCE; Schema: public; Owner: postgres
--

ALTER TABLE public."BonusQuestion" ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
SEQUENCE NAME public."Bonues_question_id_sec"
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1
);


--
-- Name: Hint; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public."Hint" (
id smallint NOT NULL,
number smallint NOT NULL,
question_number smallint NOT NULL,
hint text NOT NULL,
is_released boolean DEFAULT false NOT NULL
);


ALTER TABLE public."Hint" OWNER TO postgres;

--
-- Name: Hint_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

ALTER TABLE public."Hint" ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
SEQUENCE NAME public."Hint_id_seq"
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1
);


--
-- Name: Lifeline; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public."Lifeline" (
id smallint NOT NULL,
lifeline character varying(255) NOT NULL,
initial_question smallint NOT NULL,
final_question smallint NOT NULL
);


ALTER TABLE public."Lifeline" OWNER TO postgres;

--
-- Name: Lifeline_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

ALTER TABLE public."Lifeline" ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
SEQUENCE NAME public."Lifeline_id_seq"
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1
);


--
-- Name: Question; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public."Question" (
id smallint NOT NULL,
question_number smallint NOT NULL,
question jsonb NOT NULL,
question_type smallint NOT NULL,
answer character(64) NOT NULL
);


ALTER TABLE public."Question" OWNER TO postgres;

--
-- Name: Question_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

ALTER TABLE public."Question" ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
SEQUENCE NAME public."Question_id_seq"
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1
);


--
-- Name: User; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public."User" (
email_id character varying(255) NOT NULL,
username character varying(31) NOT NULL,
id integer NOT NULL,
lifelines text[] DEFAULT '{}'::text[] NOT NULL,
question_number integer DEFAULT 0 NOT NULL,
last_modified timestamp with time zone DEFAULT now() NOT NULL,
bonus_questions integer[] DEFAULT '{}'::integer[] NOT NULL
);


ALTER TABLE public."User" OWNER TO postgres;

--
-- Name: User_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

ALTER TABLE public."User" ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
SEQUENCE NAME public."User_id_seq"
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1
);


--
-- Data for Name: BonusQuestion; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public."BonusQuestion" (id, question, question_type, answer, lifeline_id, available_from, available_to) FROM stdin;
1 {"url": "https://media.sproutsocial.com/uploads/2017/02/10x-featured-social-media-image-size.png"} 1 936a185caaa266bb9cbe981e9e05cb78cd732b0b3280eb944412bb6f8f8f07af 1 2021-03-03 17:00:00+05:30 2021-03-04 14:00:00+05:30
2 {"url": "https://media.sproutsocial.com/uploads/2017/02/10x-featured-social-media-image-size.png"} 1 936a185caaa266bb9cbe981e9e05cb78cd732b0b3280eb944412bb6f8f8f07af 2 2021-03-03 19:00:00+05:30 2021-03-04 14:00:00+05:30
\.


--
-- Data for Name: Hint; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public."Hint" (id, number, question_number, hint, is_released) FROM stdin;
14 4 1 41 f
11 1 1 11 t
12 2 1 21 t
13 3 1 31 t
15 1 2 12 t
16 2 2 22 t
17 3 2 32 t
18 4 2 42 f
19 1 3 13 t
20 2 3 23 t
21 3 3 33 f
22 1 4 14 t
24 2 4 24 t
25 3 4 24 f
26 1 5 15 t
27 2 5 25 t
28 3 5 35 f
\.


--
-- Data for Name: Lifeline; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public."Lifeline" (id, lifeline, initial_question, final_question) FROM stdin;
1 Skip Question 1 3
2 Get Hint 2 6
\.


--
-- Data for Name: Question; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public."Question" (id, question_number, question, question_type, answer) FROM stdin;
12 0 {"url": "https://res.cloudinary.com/do3uy82tk/image/upload/v1614770439/Skyvory.png"} 1 936a185caaa266bb9cbe981e9e05cb78cd732b0b3280eb944412bb6f8f8f07af
13 1 {"url": "https://res.cloudinary.com/do3uy82tk/image/upload/v1614770439/Itschessbabbbyyyy.png"} 1 936a185caaa266bb9cbe981e9e05cb78cd732b0b3280eb944412bb6f8f8f07af
14 2 {"url": "https://res.cloudinary.com/do3uy82tk/image/upload/v1614770436/Criminallondon.png"} 1 936a185caaa266bb9cbe981e9e05cb78cd732b0b3280eb944412bb6f8f8f07af
15 3 {"url": "https://res.cloudinary.com/do3uy82tk/image/upload/v1614770436/RGlayBCcm9kaWU.jpg"} 1 936a185caaa266bb9cbe981e9e05cb78cd732b0b3280eb944412bb6f8f8f07af
16 4 {"url": "https://res.cloudinary.com/do3uy82tk/image/upload/v1614770436/Maybe.png"} 1 936a185caaa266bb9cbe981e9e05cb78cd732b0b3280eb944412bb6f8f8f07af
17 5 {"url": "https://res.cloudinary.com/do3uy82tk/image/upload/v1614770436/Matricesanddeterminants.png"} 1 936a185caaa266bb9cbe981e9e05cb78cd732b0b3280eb944412bb6f8f8f07af
18 6 {"quote": "I wonder who created this"} 2 936a185caaa266bb9cbe981e9e05cb78cd732b0b3280eb944412bb6f8f8f07af
\.


--
-- Data for Name: User; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public."User" (email_id, username, id, lifelines, question_number, last_modified, bonus_questions) FROM stdin;
ma18btech11011@iith.ac.in 37 {} 6 2021-03-04 13:59:51.427191+05:30 {}
vsvishnu2550486@gmail.com PryceTx 36 {} 2 2021-03-04 00:47:52.739579+05:30 {}
\.


--
-- Name: Bonues_question_id_sec; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public."Bonues_question_id_sec"', 2, true);


--
-- Name: Hint_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public."Hint_id_seq"', 29, true);


--
-- Name: Lifeline_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public."Lifeline_id_seq"', 2, true);


--
-- Name: Question_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public."Question_id_seq"', 18, true);


--
-- Name: User_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public."User_id_seq"', 37, true);


--
-- Name: BonusQuestion BonusQuestion_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public."BonusQuestion"
ADD CONSTRAINT "BonusQuestion_pkey" PRIMARY KEY (id);


--
-- Name: Lifeline Lifeline_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public."Lifeline"
ADD CONSTRAINT "Lifeline_pkey" PRIMARY KEY (id);


--
-- Name: User email_id_unique; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public."User"
ADD CONSTRAINT email_id_unique UNIQUE (email_id);


--
-- Name: Hint hint_pk; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public."Hint"
ADD CONSTRAINT hint_pk PRIMARY KEY (id);


--
-- Name: Question question_number_unique; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public."Question"
ADD CONSTRAINT question_number_unique UNIQUE (question_number);


--
-- Name: Question question_pk; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public."Question"
ADD CONSTRAINT question_pk PRIMARY KEY (id);


--
-- Name: User user_pk; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public."User"
ADD CONSTRAINT user_pk PRIMARY KEY (id);


--
-- Name: User username_unique; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public."User"
ADD CONSTRAINT username_unique UNIQUE (username);


--
-- Name: user_id_uindex; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX user_id_uindex ON public."User" USING btree (id);


--
-- Name: BonusQuestion lifeline_id_fk; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public."BonusQuestion"
ADD CONSTRAINT lifeline_id_fk FOREIGN KEY (lifeline_id) REFERENCES public."Lifeline"(id);


--
-- PostgreSQL database dump complete
--

3 changes: 2 additions & 1 deletion README.md
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ Give an example


### Deployment
```Add Steps Here```

`Add Steps Here`

### Contributing

Expand Down
1 change: 1 addition & 0 deletions client/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules/*
2 changes: 2 additions & 0 deletions client/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
src/serviceWorker.js
build/*
Loading