Skip to content

Example app for the React Testing Library talk in the MWD meetup

Notifications You must be signed in to change notification settings

octobot-dev/meetup-react-testing-library

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Example React app for MWD - React Testing Library

Project structure

This project contains two main folders:

  • meetup-api/ contains the "backend" API used to get the ToDos from the React app. This is implemented using FastAPI
  • meetup-app/ contains the React app and its tests.

Project setup

Running the React app

To run the React app, you will need both Node and npm installed. To install the required dependencies, run npm install. Afterwards, you can run npm start to start the app in port 3000. Both commands should be run in the meetup-app folder.

Running the API

To run the API the frontend uses, you will need Python and Pip installed. To install the required dependencies, run pip install -r requirements.txt (note: if you have both Python 2 and Python 3 in your system, run the command with pip3). To start the API, run uvicorn main:app --reload. Both commands should be run in the meetup-api folder.

Running the tests

To run the tests, in the meetup-app folder, run npm test.

About

Example app for the React Testing Library talk in the MWD meetup

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published