Giter VIP home page Giter VIP logo

arithmetic-operations-calculator-innovature-frontend-task-1's Introduction

Arithmetic Operation App Project

Table of Contents

Overview

This repository contains a Vue application that performs basic arithmetic operations like addition, subtraction, multiplication, and division by calling APIs created using Node.js. The app uses Vuex for state management to handle the application's state effectively.

Technologies Used

  • Vue: A progressive JavaScript framework for building user interfaces.
  • Vuex: State management library for Vue applications.
  • Axios: A promise-based HTTP client for making API requests.
  • Vue Router: The official router for Vue.js.

Project Structure

.
├── src
│ ├── assets
│ │ └── images
│ ├── components
│ │ ├── HomeComponents
│ │ ├── LoginComponents
│ │ └── RegisterComponents
│ ├── views
│ │ ├── HomeView.vue
│ │ ├── LoginView.vue
│ │ ├── RegisterView.vue
│ │ └── NotFound.vue
│ ├── routes
│ │ └── index.js
│ ├── service
│ │ └── axiosInterceptor.js
│ ├── store
│ │ ├── modules
│ │ │ └── auth
│ │ │   ├── actions.js
│ │ │   ├── getters.js
│ │ │   ├── index.js
│ │ │   └── mutations.js
│ │ ├── store.js
│ │ └── storeConstants.js
├── public
│ ├── index.html
├── .env
├── package.json
└── ...

Installation

  1. Clone the repository:
git clone https://github.com/sabari570/Arithmetic-operations-calculator-innovature-frontend-task-1.git
  1. Navigate to the project directory:
cd Arithmetic-operations-calculator-innovature-frontend-task-1
  1. Install dependencies:
npm install

Configuration

Create a .env file in the root directory and add the following:

VUE_APP_BACKEND_BASE_URL=your_backend_baseurl

Running the Application

npm run serve

Features

  • User Authentication: Includes Login, Signup, and Logout functionality.
  • Arithmetic Operations: Supports Addition, Subtraction, Multiplication, and Division.
  • State Management: Utilizes Vuex for managing application state.
  • HTTP Interception: Axios interceptor for handling HTTP requests and responses.
  • Responsive Design: Adapts to various screen sizes with a responsive layout.

Vuex Store

The Vuex store in this application is designed to handle authentication and the loading state. It is structured to include modules for better organization and scalability. The authentication module handles actions, mutations, and getters related to user authentication, while the main store manages the loading state.

store.js

The store.js file creates and exports the Vuex store. It imports the auth module and integrates it into the store. Additionally, it defines a global state property showLoading and a mutation to update this state.

storeConstants.js

The storeConstants.js file defines constants for actions, mutations, and getters used in the Vuex store. These constants help in avoiding typos and make the code more maintainable by providing a single source of truth for these strings.

Axios Interceptor

The axios interceptor is configured to handle HTTP requests and responses, managing authentication tokens and error handling seamlessly.

License

This project is licensed under the MIT License. See the LICENSE file for details.

arithmetic-operations-calculator-innovature-frontend-task-1's People

Contributors

sabari570 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.