Skip to content

roanuz/cricketapi-nodejs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cricket API - NodeJS

The Boiler plate using NODEJS, Nunjucks and Memcache to develop a sports App to show cricket Score using Roanuz Cricket API apis

Initial configuration

create a .env file with following data on the root folder

SC_APP_ID = your_app_id
SC_ACCESS_KEY = your_access_key
SC_SECRET_KEY = your_secret_key
SC_DEVICE_ID = your_device_id
SC_PORT = any port default 4000
SC_ENABLE_MEMCACHE = false

Follow the simple steps to get Roanuz Cricket API Access Key & Secret Key:

Get Enrolled with Roanuz Cricket API using following Link: https://www.cricketapi.com/register/

Fill the missing information on My Apps page to get the Access Token for your App. Now you should be able to see the Access key and Secret key in your App Details page mentioned below.

Recent Matches Output

Install Dependencies

npm install to make sure all the packages are installed.

Compile & Run

npm start to compile and run the app

Note: if you enabled memcache, you need to run as memcached as a service

Memcache

Memcache for Ubuntu: Refer this Link: https://www.journaldev.com/1/how-to-install-memcached-server-on-mac-oslinux

Memcache for Mac: Refer this Link: https://syscoding.com/tutorials/40/how-to-install-memcached-on-ubuntu-1604/

For more details Check: https://www.cricketapi.com/

Output

http://localhost:4000/ Recent Matches Output

http://localhost:4000/match/pslt20_2018_g7/

Score Card Output

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published