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.
cdintoscraperand runnpm installto install web-scraper dependencies.cdintoapiand runyarnto install API dependencies.- Update the
URLvariable inside the .env.sample (found in/api) with the cryptocurrency site url to be scraped.- Get rid of the
.samplefile-ending to "activate" your .env file.
- Get rid of the
- While in
api, runknex migrate:latestto create the SQLite DB. - After creating your DB, run
knex seed:runto seed the DB w/ the web-scraper data. - Still inside
api, runyarn startto start the API. - API can be accessed by doing a
GETrequest atlocalhost:9000/coin_data. - Individual coin data can be accessed by doing a
GETrequest atlocalhost:9000/coin_data/idmaking sure to substituteidw/ 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.