https://github.com/travelxml/rick-and-morty-api-next
Create Next APP Using RICK and Morty API
https://github.com/travelxml/rick-and-morty-api-next
rick-and-morty rickandmortyapi
Last synced: 7 months ago
JSON representation
Create Next APP Using RICK and Morty API
- Host: GitHub
- URL: https://github.com/travelxml/rick-and-morty-api-next
- Owner: TravelXML
- License: mit
- Created: 2022-01-10T07:05:44.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-01-10T10:28:51.000Z (over 3 years ago)
- Last Synced: 2025-01-21T01:11:14.590Z (9 months ago)
- Topics: rick-and-morty, rickandmortyapi
- Language: JavaScript
- Homepage: https://rick-and-morty-api-next.vercel.app/
- Size: 259 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Rick and Morty API with Next.js and Mocha
Demo for tutorials that help you create a new Next.js app that can dynamically pull in character information and add animations with Framer.js.
Learn how to create your own with [How to Create a Dynamic Rick and Morty Wiki Web App with Next.js](https://github.com/TravelXML/RICK-AND-MORTY-API-NEXT)
### API Documents
[🖕 Find the Rick and Morty API for REST Implementation.](https://rickandmortyapi.com/documentation/#rest)
## DEMO
**Would you like to see demo right away? believe i know the answer, you can click below link.**
[🖕 Here you can find Rick and Morty API Document for REST implementation.](https://rickmortyapi-next.vercel.app/)
## Implementation
GET any 2 characters from the Rick and Morty API that interest you using the 'character' API that are
* Male AND Alive OR
* Female AND Dead
* List all the locations that are of type planet.## Getting started locally
* Run the below commands.
* `yarn install`
* `yarn dev`
* 🚀## Endpoints
### `http://localhost:3000/` - Male AND Alive OR / default
### `http://localhost:3000/female` - Female AND Dead
### `http://localhost:3000/locations` - locations that are planet
### `http://localhost:3000/character/{id}` - Individual Character Details## Screenshots
### `http://localhost:3000/` - Male AND Alive OR / default

### `http://localhost:3000/female` - Female AND Dead

### `http://localhost:3000/locations` - locations that are planet

### `http://localhost:3000/character/{id}` - Individual Character Details

## Logs
logs are saved into `/logs` folder in JSON Format.

## Testing
Testing file you can locate in `/test` folder, you can add more test cases into this, but here fouced at very basic test cases for the endpoints.
## How to Run?
Just Go to your Project Directory and run command `mocha`, it will execute all test cases written on that folder.

Happy Coding! ❤️