Skip to content

This is a random name picker for prize drawings and the like. Built for use with CPOSC, it converts CSV to JSON and picks a name from the JSON response.

Notifications You must be signed in to change notification settings

colelabar/Name-Randomizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CPOSC Prize Winner Randomizer Bot

Overview

Simple Node-Express web-app to convert a CSV file to JSON, and then randomly pick a prize winner from the JSON Array

Usage

Use npm to install dependencies

npm install

Data Manipulation

  • Normalize the CSV dataset, replacing all commas with semicolons, and add placeholder CPOSC rows at the beginning and end of the dataset to use as the default viewport for the randomizer (prevents a name from being displayed by default)
  • Use npm start to convert the CSV file to a JSON file, which will also print to the console for confirmation of success
  • Point the browser at localhost:5001
  • Randomize away!

About

This is a random name picker for prize drawings and the like. Built for use with CPOSC, it converts CSV to JSON and picks a name from the JSON response.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published