Skip to content

iswilljr/rick-and-morty-api

Repository files navigation

The Rick and Morty API

The Rick and Morty API

Rick and Morty API Unit and E2E Testing Rick and Morty Site E2E Testing

A backend clone project of the The Rick and Morty API, star the project here.

The Rick and Morty API is a RESTful API based on the television show Rick and Morty. The Rick and Morty API is filled with canonical information as seen on the TV show.

Getting Started

Check out the documentation to get started

Install dependencies with pnpm

pnpm install

Generate Env Variables

cp -r .env.template .env

Start local postgres database

docker-compose up -d

Seed the database

# Start dev server
pnpm dev

# On another terminal
curl --request POST --url http://localhost:4000/seed

Testing

# Controllers And Services
pnpm test

# REST API
pnpm test:e2e

Website

Check the code of the website