Git Product home page Git Product logo

week-14-suryaftr's Introduction

Simple CRUD Category App + Register & Login, Include Unit Testing

Introduction

Simple CRUD Category App + Register & Login is a website application that provide users with simple registration user and login user for access CRUD for Category App. It's already provides unit testing file in it.

Content

  • Introduction
  • Content
  • Requirement Tech
  • Getting Started
  • Deployment
  • Dependencies
  • Unit Testing Project Preview

Requirement Tech

  • Node.js - JavaScript runtime environment.
  • React.js - Web front-end framework for Node.js.
  • Vite.js - Frontend build tool that significantly improves the frontend development experience.
  • Ant Design - React libary for layout and styling web design.
  • Formik & Yup - For client-side validation.
  • React Router* - React Router isn't just about matching a url to a function or component: it's about building a full user interface that maps to the URL, so it might have more concepts in it than you're used to.

Getting Started

1. Prerequisites

Firts, make sure you already have:

  • Git installed.
  • Node.js and npm installed.
  • A text editor or IDE (e.g., Visual Studio Code).

2. Clone the Repository

git clone <repository-url>
cd <repository-folder-name>

3. Install all required packages dependencies

npm install

4. Starting the project

To testing project, type on command prompt :

npm run test

To run project, type on command prompt :

npm run dev

Deployment

Here is the deploy link for Website React App : https://comfy-cocada-6f6a37.netlify.app/

Dependencies

  1. "antd": "^5.9.0"
  2. "formik": "^2.4.4"
  3. "react": "^18.2.0",
  4. "react-dom": "^18.2.0"
  5. "yup": "^1.2.0"
  6. "localforage": "^1.10.0"
  7. "match-sorter": "^6.3.1"
  8. "react-router-dom": "^6.16.0"
  9. "sort-by": "^1.2.0"

For Unit Testing (Install on devDepedencies) :

  1. jest
  2. @babel/preset-env
  3. @babel/preset-react
  4. @babel/preset-typescript
  5. @testing-library/react
  6. @testing-library/jest-dom
  7. jest-environment-jsdom

Unit Testing Project Preview

  • There are four main testing scenario on this project.
  1. Rendered Login Page Correctly on LoginForm.test.tsx file. testLoginForm

  2. Rendered Register Page Correctly on RegisterForm.test.tsx file. testRegisterForm

  3. Rendered Category List Page Correctly on CategoryList.test.tsx file. testCategoryList

  4. Rendered Category Page for Create or Update Page Correctly on CategoryForm.test.tsx file. testCategoryForm

  • The other component testing :
  1. Rendered Navbar Component Correctly on Navbar.test.tsx file. testNavbar

  2. Rendered Header Component Correctly on Header.test.tsx file. testHeader

  3. Rendered Footer Component Correctly on Footer.test.tsx file. testFooter

Review Assignment Due Date

week-14-suryaftr's People

Contributors

github-classroom[bot] avatar suryaftr avatar

Watchers

 avatar  avatar

Forkers

suryaftr

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.