This application stores and displays users data in the form of a table. You can add a user to the table by manually entering the details. You can also generate details of a random user and add them.
Check out the live version of the app here
- Feature 1: All users are displayed on the home page are coming from a json file named user.json present in public folder of root directory.
- Feature 2: User can be added by clicking the "Add a User" button and filling up the form.
- Feature 3: There's is a "Generate" button which can automatically generate details of a random user in the form.
- React
- Material-UI
- TypeScript
- Cypress
To run this project locally, follow these steps:
-
Clone the repository: git clone https://github.com/01shashank/user-application.git
-
Install the dependecies: npm install
-
Run the project: npm start The server will start on "http://localhost:3000/"
- For running Tests using Cypress :-
- npx cypress open
- Select E2E testing option on the Cypress window.
- Select a suitable browser.
- Select the spec.cy.ts file.
- It should run the test cases present in the file.