Skip to content

mrobert3456/ReactRickAndMorty

Repository files navigation

React app uses the Rick and Morty API

⚙ About

This application uses the Rick and Morty API

📦 Installation

This Repository

Download this repository by running:

git clone https://github.com/mrobert3456/ReactRickAndMorty.git
cd ReactRickAndMorty

⚡ Software Dependencies

Create a .env.developlment file in the project's root folder with the following structure:

VITE_API_URL= {should be the `REST base url` described in the documentation above}

Install dependecies running: npm install

To start the development server run: npm run dev

To run the application with nginx on localhost:8080 run: docker compose up

To deploy the application with minikube run the following commands:

kubectl apply -f deploy/deployment.yaml
kubectl apply -f deploy/service.yaml

minikube service app-service

or run ./deploy/deploy_app.sh

Minikube - local Kubernetes cluster

⚡ Running tests

To run the e2e test in headless mode, start the application and then run: npx cypress run

To run the unit test run: npm test

Resources

Chakra UI - Chakra UI is a simple, modular and accessible component library that gives you the building blocks you need to build your React applications

Rick and Morty API - API for getting the episodes, characters and locations from the Rick and Morty TV show

Cypress - easily create tests for your modern web applications, debug them visually, and automatically run them in your continuous integration builds.

Vitest - A Vite-native testing framework. It's fast!

About

React application uses the Rick and Morty API

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published