Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sanika365/med_wander
single page form with google sheet synchronization deployed with only frontend part
https://github.com/sanika365/med_wander
express-js google-sheets-api node-js react-js sequalize sql-database sql-workbench tailwindcss
Last synced: 2 months ago
JSON representation
single page form with google sheet synchronization deployed with only frontend part
- Host: GitHub
- URL: https://github.com/sanika365/med_wander
- Owner: sanika365
- Created: 2024-06-17T13:31:43.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-06-19T14:26:10.000Z (6 months ago)
- Last Synced: 2024-09-24T02:12:41.160Z (3 months ago)
- Topics: express-js, google-sheets-api, node-js, react-js, sequalize, sql-database, sql-workbench, tailwindcss
- Language: JavaScript
- Homepage: https://6670461a9fe4151f9f224371--inspiring-bombolone-6b7b36.netlify.app/
- Size: 19.5 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Form Application
Description
MedWander is a web application that allows users to submit medical forms and updates an online Excel sheet with the submitted data. It utilizes React.js for the frontend and Node.js with Express.js for the backend.Installation
Backend Setup
1.Clone the repository:
git clone https://github.com/Sanika365/Med_Wander.git
2.Navigate to the backend directory:
cd server
3.Install dependencies:
npm install
4.Set up the database:
Ensure MySQL is installed and running.
Create a MySQL database named medwander.
Update database.js with your MySQL username and password.5.Run migrations to create tables:
npx sequelize-cli db:migrate
6.start the backend server:The server will start at http://localhost:5000.
npm start
The server will start at http://localhost:5000.Frontend Setup
1.Navigate to the frontend directory:
cd ../frontend
2.Install dependencies:
npm install
3.Start the React development server:
npm start
The React application will start at http://localhost:3000.
How to Run the Application1. Backend: Once installed, the backend server can be started with npm start in the backend directory. It runs on port 5000.
2. Frontend: After installing dependencies, start the React development server with npm start in the frontend directory. It runs on port 3000 and will automatically open in your default browser.
Functionality Implemented1.The application displays two buttons labeled "Form A" and "Form B".
2.Clicking on either button will display a form with input fields for Name, Country Code, and Phone Number.
3.The form header dynamically displays "Form A" or "Form B" based on the selected button.
4.Form Submission: Users can fill out medical forms (Form A or Form B) with their name, country code, and phone number. Validation ensures correct data formats.
5.After submitting the form, the data is stored in a SQL database.
6.A "Refresh" button is available on the interface, which updates an online Excel sheet with the new data from the SQL database when clicked.
7.Excel Sheet Update: Upon form submission, the backend updates an online Excel sheet with the submitted data using the Google Sheets API.
Additonal features:
1.Local Storage: Form data is saved locally using browser storage, allowing users to continue where they left off if they revisit the application.
2.The application is responsive and designed to work on both mobile and desktop devices.