Skip to content

zhenkaGo/olympic-games

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

olympic-games

Build Status

"Olympic-games" it's a test task from Brocoders for Node.js coders. Description here.

This task contain 2 stages:

  • import data from CSV file to SQLite database
  • create cli-tool for build charts.

Project structure:

.
├── charts/         # chart queries and builder
├── csv/            # csv file for import
├── db/             # sqlite db file
├── import/         # import to db scripts
└── node_modules/
./import.js         # csv parse and import
./stat              # cli-tool for show charts

Prepare database:

$ node import.js

View cli-charts:

$ ./stat [chart] [params]

Command examples:

$ ./stat medals UKR summer gold
$ ./stat medals USA winter
$ ./stat top-teams 1998 winter silver
$ ./stat top-teams summer

About

Brocoders Nodejs test task

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published