GithubHelp home page GithubHelp logo

nacomitagiera / password-generator Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 781 KB

React random password generator with Jest and RTL unit tests, Cypress e2e tests

Home Page: https://nextjs-mui-password-generator.vercel.app

CSS 1.02% TypeScript 97.06% JavaScript 1.65% Shell 0.26%
password-generator typescript material-ui jest react-testing-library component-testing nextjs cypress e2e-tests unit-testing

password-generator's Introduction

Password Generator

This is a simple web application built with Next.js that generates random passwords. It allows you to customize the password length and choose whether to include digits, lowercase letters, uppercase letters, and symbols. The app is deployed on Vercel and can be accessed at https://nextjs-mui-password-generator.vercel.app/

Password Generator

Features

  • Generate random passwords with customizable length and character sets.
  • Copy the generated password to the clipboard with a single click.

Technologies used

  • Next.js - Popular React framework for building server-side rendered applications. I haven't really utilized the SSR capabilities of Next.js in this project, but I chose it because it provides a great developer experience and makes it easy to build a production-ready React app.
  • Material UI - popular React UI component library for creating beautiful and responsive UIs.
  • Jest - JavaScript testing framework for unit and component testing.
  • React Testing Library - set of utilities for testing React components.
  • Cypress - JavaScript end-to-end testing framework

Getting Started

To install and start the app locally, follow these steps:

  1. Clone the repo:
git clone https://github.com/NacomiTagiera/Password-Generator.git
  1. Install the dependencies:
npm install
  1. Start the development server:
npm run dev
  1. Open http://localhost:3000 with your browser to see the result.

Running unit tests

To run the Jest unit tests, follow these steps:

  1. Open a terminal in your project directory.
  2. Run the following command:
npm run test

This will run all the Jest unit tests in the terminal.

Running E2E tests

To run the Cypress E2E tests, follow these steps:

  1. Open a terminal in your project directory.
  2. Run the following command to open the Cypress Test Runner:
npx cypress open

This will open the Cypress Test Runner window.

  1. Click on the test file you want to run in the Cypress Test Runner.

Running E2E tests in headless mode

If you prefer to run the tests in the terminal without opening the Cypress Test Runner window, you can use the following command:

npx cypress run

This will execute the tests headlessly, and the results will be displayed in the terminal.

password-generator's People

Contributors

nacomitagiera avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.