Giter Club home page Giter Club logo

meta-2k24-backend's Introduction

WLUG Event Registration Backend

Overview

This repository contains the source code for the event registration backend.

Usage

Hit the following endpoint to register a user [event must be scheduled first]:

POST /register
{
    "name": "Smit Butle",
    "phone": "9876543210",
    "email": "[email protected]",
    "college": "Walchand College of Engineering, Sangli",
    "yearOfstudy": "2024",
    "isDualBooted": "true",
    "referralCode": "WLUG"
}

Hit the following endpoint to schedule an event:

POST /schedule
{
  "event": "Meta",
  "year": 2024,
  "start": 1541825600,
  "end": 1841854400,
  "uri": "mongo sample uri",
  "email": "[email protected]",
  "email_subject": "Your registration was successful",
  "email_body": "This is a sample email body.",
  "email_appkey": "16 digit appkey",
  "max_users": 100,
  "fields": {
    "name": 1,
    "phone": 1,
    "email": 1,
    "college": 0,
    "yearOfstudy": 0,
    "isDualBooted": -1,
    "referralCode": -1
  }
}

Sample Register for above config

{    
    "name": "Smit Butle",
    "phone": "9876543210",
    "email": "[email protected]",
    "college": "Walchand College of Engineering, Sangli", (optional)
    "yearOfstudy": "2024" (optional)
}

Configuration

Basic

Use year as 2024 , 2025 (4 digit year) Use event name as one of the following Meta LinuxDiary OSD TechnoTweet

MongoDB URI

Make sure to replace "mongo sample uri" with your actual MongoDB connection string in the uri field.

Email Configuration

  • Email: [Sender email]
  • Email Subject: [Email subject]
  • Email Body: [Email body]
  • Email App Key: [Your 16-digit app key]

User Fields

The following fields are used for user registration:

"name" :
"phone" :
"email" :
"college" :
"yearOfstudy" :
"isDualBooted" :
"referralCode" :

Use 1 is field is required.
Use 0 if field is optional.
Use -1 if field is to be omitted.

Registration Period

The registration period is defined from [start] to [end] unix time.

Maximum Number of Users

The maximum number of users allowed.

meta-2k24-backend's People

Contributors

smitbutle avatar yashashwi0708 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.