A headless CMS for CSS Website and App.
Don't Mess With Master
/api/admin/
Routes
- Post
/api/admin/register
register - Post
/api/admin/login
login - Get
/api/admin/logout
logout
- Post
/api/admin/member/new
add member - Put
/api/admin/member/:id
updateMemberdeleteMember - delete
/api/admin/member/:id
deleteMember - Get
/api/admin/members/:batch
all members of the batch
- Get
/api/admin/user/
get signed in user details - Post
/api/admin/user/signup
register/signup user - Post
/api/admin/user/login
login user - Get
/api/admin/user/logout
logout user
- Post
/api/admin/abacus/
create event admin only - Patch
/api/admin/abacus/:event_id
update event admin only - Delete
/api/admin/abacus/:event_id
delete event admin only - Get
/api/admin/abacus/
get all abacus events - Post
/api/admin/abacus/register/:event_id
register signed-in user for event
- Post
/api/admin/enigma
create enigma admin only - Patch
/api/admin/enigma/:enigma_id
update enigma admin only - Delete
/api/admin/enigma/:enigma_id
delete enigma admin only - Get
/api/admin/enigma
get details on all enigmas - Post
/api/admin/enigma/register/:enigma_id
register signed-in user for enigma - Get
/api/admin/enigma/cfID
get all users with provided codeforces handles
name
: string, requiredemail
: string, requiredpassword
: string, requiredscholarID
: string, requiredcodeforcesHandle
: string, optionalgithubHandle
: string, optional
name
: string, requireddescription
: string, requiredstartDate
,endDate
: string, requiredeventType
: string, requiredminTeamSize
,maxTeamSize
: string, requiredstartTime
: string, requiredcoverPic
: base64 encoded image
event_id
: string, required [as URL parameter]teamName
: string, requiredteamLeaderScholarID
: string, requiredmemberScholarIDs
: Array of string, required [must be enough to meet minTeamSize requirement]- all scholar IDs present in the submitted fields must have an account
Installation
- Clone the repo Or Run
git pull origin master
if already cloned. - Run "npm install" in the command prompt to install all related dependencies.
- Create a ".env" file inside the config directory as per ".env.example" file present there.
- Run
npm run dev
.