Skip to content

CodeLawd/throne-of-glass-api-with-typescript-and-cheerio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Throne of Glass API

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.

Run Locally

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

API Reference

Get all items

  GET /api/characters

Get item

  GET /api/characters/${id}
Parameter Type Description
id string Required. Id of item to fetch

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published