Keita Solution is a web application specializing in sustainable energy solutions and electrical equipment in Senegal. This project includes features such as a catalog of products, a custom install banner for PWA, and push notifications.
- Product Catalog: Browse through various categories of electrical equipment.
- Progressive Web App (PWA): Install the app on your device for a native-like experience.
- Push Notifications: Receive updates and notifications even when the app is not open.
- Responsive Design: Optimized for both desktop and mobile devices.
To install the Keita Solution web app on your device:
- Open the app in your browser.
- You will see an install banner at the bottom of the screen.
- Click on the "Installer" button to add the app to your home screen.
- Node.js
- npm (Node Package Manager)
- Clone the repository:
git clone https://github.com/5s9horizons/5s9KeitaSolution.git
- Navigate to the project directory:
cd 5s9KeitaSolution - Install dependencies:
npm install
To run the app locally:
- Start the development server:
npm start
- Open your browser and navigate to
http://localhost:3000.
The service worker is responsible for caching assets and handling push notifications. The push notifications are managed using the notification-content.json file.
To update the push notification content:
- Open the
notification-content.jsonfile. - Update the
messagefield with the new notification content. - Save the file. The service worker will automatically fetch the new content and send the notification to users when they come online.
index.html: The main HTML file for the app.manifest.json: The web app manifest file.service-worker.js: The service worker script for caching and push notifications.notification-content.json: The file containing the push notification content.main.js: The main JavaScript file for the app.
Contributions are welcome! Please fork the repository and create a pull request with your changes.
This project is licensed under the MIT License. See the LICENSE file for details.
For any inquiries, please contact:
- Email: mahfouzekeita579@gmail.com
- Phone: +221761505085
Designed by 5s9 Horizons.