Giter Club home page Giter Club logo

assessli-contact-form-internship-task's Introduction

Assessli React Internship Assignment

This project is a React assignment for Assessli. It aims to create a dynamic and visually appealing contact page using React that can be easily integrated into your website to allow visitors to send you messages. The contact page includes a form with fields for name, email, phone, and message. The project integrates with Google Sheets, and the form data is being submitted to the where the proper working of the form can be checked.

Getting Started with Create React App

This project was bootstrapped with Create React App.

Once We Clone the Repository, we have to run the following commands ->

Available Scripts

In the project directory, you can run:

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in your browser.

Deployment

This section has moved here: https://facebook.github.io/create-react-app/docs/deployment

npm run build fails to minify

This function creates a compact folders of all the essential part of the application so that it can be deployed.

Steps to integrate Google Sheets with React.js using Google App Scripts

Integrating Google Sheets with a React.js application using Google Apps Script involves creating an Apps Script project to act as an intermediary between our React.js front end and the Google Sheets backend. This allows our React.js application to send data to Google Sheets for storage and retrieval. Here are the steps to achieve this integration:

  1. Create a new Google Sheets document or open an existing one.
  2. Set up the sheet with the necessary columns to store your data.
  3. Go to the Google Apps Script website.
  4. Create a new project and give it a name.
  5. Write the Apps Script code to handle incoming HTTP requests and interact with Google Sheets.
  6. Deploy your Apps Script project as a web app to obtain a URL that your React.js application can send requests to.
  7. Choose "Web App" as the deployment type and configure settings like access permissions.
  8. Deploy the web app and note down the URL generated.
  9. Create a new React.js application or use an existing one and fetch the api from Google Sheet backend.
  10. Now after fixing the CORS issue, we can create the frontend and retrieve the data written in the app directly from google sheet.

Features

  • Easy integration into any HTML/CSS/JS or React and Tailwind CSS based website.
  • Collects sender's name, email, and message or more fields can be added.
  • Sends messages to your Google Sheets using server-side processing.

Setup Instructions

  1. Clone the repository: git clone https://github.com/soubhatta/Assessli-Contact-Form-Internship-Task.git
  2. Install dependencies: npm install
  3. Run the project: npm run dev
  4. Access the server at http://localhost:3000

Google Sheets Integration

The project integrates with Google Sheets, and the form data is being submitted to https://docs.google.com/spreadsheets/d/1xo_z8qvE0RI85VQEdNvK5MRnD4Ls-sEnmw12HuaNYgQ/edit?usp=sharing, where you can check the data submitted to the form.

Additional Information

  • The project uses React for frontend development.
  • For any issues or suggestions, please contact me. Email: [email protected]

assessli-contact-form-internship-task's People

Contributors

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