Cryptocurrency API that uses a web-scraper to provide real-time cryptocurrency data.
- Data is scraped and seeded into the SQLite Database. Data can then be accessed after starting your server.
- Fork and clone the repo.
cd
intoscraper
and runnpm install
to install web-scraper dependencies.cd
intoapi
and runyarn
to install API dependencies.- Update the
URL
variable inside the .env.sample (found in/api
) with the cryptocurrency site url to be scraped.- Get rid of the
.sample
file-ending to "activate" your .env file.
- Get rid of the
- While in
api
, runknex migrate:latest
to create the SQLite DB. - After creating your DB, run
knex seed:run
to seed the DB w/ the web-scraper data. - Still inside
api
, runyarn start
to start the API. - API can be accessed by doing a
GET
request atlocalhost:9000/coin_data
. - Individual coin data can be accessed by doing a
GET
request atlocalhost:9000/coin_data/id
making sure to substituteid
w/ the id of the individual coin.
- Cheerio
- Cheerio-Tableparser
- Request-Promise
- Dotenv
- Node.js
- Express
- Knex
- SQLite
- Helmet
- Morgan
- Sawyer Zincone -initial work- szincone
This project is licensed under the MIT License - see the LICENSE file for details.