This is the Throne of Glass API built with Typescript, Mongoose and Cheerio. This was done by scrapping data from https://throneofglass.fandom.com/. The name of each character, their species and their image were extracted. This was then populated into our mongodb database.
Don't forget to set up MongoDB database.
NOTE: This project would be hosted on heroku soon so you can make a request directly from the url.
Clone the project
git clone git@github.com:CodeLawd/throne-of-glass-api-with-typescript-and-cheerio.git
Go to the project directory
cd throne-of-glass-api-with-typescript-and-cheerio
Install dependencies
npm install or yarn install
Start the server
npm run dev
Run the seed file (used to populate the database)
npm run seed:db
GET /api/characters
GET /api/characters/${id}
Parameter | Type | Description |
---|---|---|
id |
string |
Required. Id of item to fetch |