Coder Social home page Coder Social logo

contact-book's Introduction

ContactBook | My Contacts

Included Technologies

This project utilizes a diverse array of technologies, including:

  • Styled Components
  • TypeScript
  • React Query
  • React Hook Form
  • Rodal
  • Yup
  • Jest
  • React Testing Library
  • Storybook
  • Eslint
  • Prettier
  • Husky
  • Axios
  • MSW
  • Docker

Getting Started (Development)

Follow the instructions below to set up the project for development:

  1. Install Global Dependencies

    Start by installing the global dependencies with the following command:

    npm install -g json-server
  2. Install Project Dependencies

    Next, install the project dependencies using:

    yarn install
  3. Run JSON Server

    In a separate terminal, run the JSON Server using the command:

    json-server --watch mock/db.json
  4. Create a Service Worker

    Before starting the Storybook, you'll need to create a Service Worker so that MSW can intercept requests. Do this with:

    npx msw init public
  5. Run the Development Server

    Finally, start the development server using:

    yarn dev

    You can now open http://localhost:5173/ with your browser to see the result.

Docker Deployment

If you prefer to use Docker, ensure that you have the appropriate environment setup. You can then use the following command:

docker-compose up -d

After running the command, open http://localhost:5173/ with your browser to see the result.

Use a REST client like Insomnia to inspect the endpoint at:

http://localhost:5000/contactBook

Available Commands

  • dev: Runs your application on localhost:5173.
  • build: Creates the production build version.
  • storybook: Runs the Storybook stories.
  • build-storybook: Creates the Storybook build.
  • test: Runs Jest to test all components.
  • test:watch: Runs Jest in watch mode to test all components.

Important Note

The local backend server (JSON SERVER API) is only intended to provide data to the frontend during development. Do not use it in a production environment.

contact-book's People

Contributors

jonasmarco avatar

Watchers

 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.