Coder Social home page Coder Social logo

atg-case's Introduction

ATG Case Readme

This repository contains a coding exercise application for ATG. Below are the instructions for running, testing, and linting the application.

Prerequisites

Make sure you have the following software installed on your machine:

  • Node.js (version 12 or above)
  • NPM (Node Package Manager)

Installation

Clone this repository to your local machine using the following command:

git clone <repository-url>

Navigate to the project directory:

cd <project-directory>

Install the required dependencies by running the following command:

npm install

Running the Application

To start the application locally, follow these steps:

Make sure you are in the project directory.

Run the following command:

npm start

This will start the development server and the application will be accessible at http://localhost:3000 in your web browser.

Testing the Application

This application uses the Jest testing framework for running unit tests. To run the tests, follow these steps:

Make sure you are in the project directory.

Run the following command:

npm test

This will execute all the test cases and display the results in your console.

Linting the Application

Linting helps ensure code quality and adherence to coding standards. This application uses ESLint for linting JavaScript code and Prettier for code formatting.

To lint the application, follow these steps:

Make sure you are in the project directory.

Run the following command:

npm run format

This will analyze your code and first run prettier to format the code using below command:

npm run prettier:fix

and then it run npm run lint:fix to fix the linting error(s).

Additional Scripts

In addition to the commands mentioned above, this project provides a few additional scripts that you can use:

npm run build:client: Builds the FE application for production deployment. npm run test: Runs tests and generates test coverage reports. npm run format: Formats the code using Prettier and validates with ESLint rules. Feel free to explore the package.json file for more information about the available scripts.

Contributing

If you would like to contribute to this project, please follow these steps:

Fork the repository and clone it to your local machine.

Create a new branch for your changes:

git checkout -b my-feature

Make your desired changes and commit them.

Push the changes to your forked repository.

Create a pull request to the original repository.

Please ensure that your changes align with the project’s coding standards and guidelines.

Enhancements

Below are the few things which can be enhanced after delivery of MVP:

  1. Add loader state/component.
  2. Show empty list page when the data is not found.
  3. Implement the Snapshot testing.
  4. Show error(s) to the user if present in the FE due to any event(s).

License

This project is licensed under the MIT License.

atg-case's People

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.