This is the registration app for CodeCamp. The app captures basic info of the registrant such as name, inumber and email id. It exposes the topic specific Crossword, expected to be answered by the registrant.
Note: The application works best on Google Chrome
Follow the steps below to deploy the application for a new CodeCamp:
Clone the repo locally
Generate a crossword for the available questions and answers using the tool EclipseCrossword. Kindly note that the tool is available only for Windows.
- Download EclipseCrossword and follow the instructions to install the tool locally
- Generate the crossword following the instructions, should be self-explanatory
- Save the following [html] files from the tool
- interactive javascript files
- crossword grid
- Save the crossword for future reference, if required
The application uses the html+javascript files generated from the tool as describe above. The code is refactored to separate the generic code from event specific code like the questions and answers for the event. Follow the below steps to update the event specific content
- Replace the public/show_crossword.html with the crossword grid html file saved in the above step
- Update the models/CrosswordClues.js with the answers of the current crossword. This is required for validating the answers during registration
- Replace the public/crossword.js with the similar script from the generated interactive javascript files in the above step. Look for similar section in the file. Check the /public/crossword.js file for reference
- Ensure to remove the answers [Word array] array from the script
- Compare with the section in public/crossword.js and remove the unwanted lines
The application displays the title, date, venue of the CodeCamp event. So, update this appropriately
- Update the file public/CodeCampdetails.html with the title, date and venue of the event
- Replace the codecamp.png with the graphics of the event
Deploy the application (Alternatively, skip this step and Deploy via zip file upload to SAP BTP or other Cloud Service providers)
This is a nodejs application. It uses MongoDB for persistency. Deploy this application on SAP Business Technology Platform as a Cloud Foundry application. You can deploy the application in the Trial account.
- Using CF CLI, log on to SAP Business Technology Platform and navigate to the Subaccount and Space where you want to deploy the application
- Create a service instance of MongoDB with the name _mongodb-codecampblr in the Space
- Run cf push from the root folder
- If the deployment is successful and the application is started, access the application through browser
Access the link <appurl>/registrations to get the detailed list of the registrations made
Simply launch the link <appurl>/reset and click on Reset Data to reset the registrations maintained so far
Mongo DB free instances are available at MongoDB Atlas