Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Company project 3 #11

Merged
merged 32 commits into from
Aug 11, 2024
Merged

Company project 3 #11

merged 32 commits into from
Aug 11, 2024

Conversation

SanjayKhatiChhetri
Copy link
Member

  1. restructuring of folders.
    Frontend (React): The frontend follows a typical Create React App structure with some custom additions:
    • public/: Contains the entry HTML file and PWA-related files.

      • Moving idb.js, sw.js, and utility.js to the public folder is a good choice for PWA functionality, as it makes these files directly accessible.
    • src/: Contains the React application source code.

      • The component structure (Common, E18MuurlaForm, Homepage) suggests a modular approach, which is excellent for maintainability.
      • The NavBar and NavbarIconUtility folders indicate attention to reusable UI components.
    • Public/Assets/Icons/: Storing icons separately is a good practice for asset management.

      kaiku/
      │
      ├── Frontend/
      │ ├── public/
      │ │ ├── index.html
      │ │ ├── manifest.json
      │ │ ├── idb.js
      │ │ ├── sw.js
      │ │ ├── utility.js
      │ │ └── robots.txt
      │ │
      │ ├── src/
      │ │ ├── components/
      │ │ │ ├── Common/
      │ │ │ │ └── NavBar/
      │ │ │ │ └──NavbarIconUtility/
      │ │ │ ├── E18MuurlaForm/
      │ │ │ └── Homepage/
      │ │ │
      │ │ ├── images/
      │ │ ├── pages/
      │ │ ├── Public/Assets/Icons/
      │ │ ├── App.css
      │ │ ├── App.js
      │ │ ├── FirebaseConfig.js
      │ │ ├── index.css
      │ │ ├── index.js
      │ │ ├── registration.js
      │ │ └── serviceWorkerRegistration.js
      │ │
      │ ├── package.json
      │ └── .gitignore
      │
      ├── backend/
      │ ├── FirebaseConfig.js
      │ ├── package.json
      │ ├── server.js
      │ └── vercel.json
      │
      ├── package.json
      └── README.md
      
  2. adding more components for example E-E18MuurlaForm.
  3. feat: Internet connectivity icon for offline and online in nav bar.
  4. feat: badge for task added while offline.
  5. feat: Custom Notification for background task, that are synced to firebase after coming online.

- added new icons for the mobile design
- added new components for the mobile design
- added new pages for the mobile design
- added new css for the mobile design
- added new images for the mobile design
- added new utility for the mobile design
- added new icon utility for the mobile design
- removed unused components
- removed unused images
- removed unused css
- removed unused utility
- removed unused pages
- E18MuurlaForm Implementation
- refactoring of the project structure and components
- adding input logic for the E18MuurlaForm with firebase
- implementation of sycned post for notification when coming online
- css implementation for input fields in form
- code clean up for css and js
- mobile responsive design for the form
- forntend and backend to be deployed seprately
- css for typeselector fix
- css for nav bar fix
This commit adds a new `vercel.json` file to the backend directory, which specifies the build configuration for the Vercel deployment. It includes the source file `server.js` and uses the `@vercel/node` builder. Additionally, it sets up rewrites and headers to enable CORS (Cross-Origin Resource Sharing) for the API endpoints.
This commit updates the index.html file in the Frontend/public directory to comment out the favicon link. This change is made to improve security by preventing the loading of the favicon.ico file from the public URL.

Additionally, the vercel.json file in the backend directory is modified to add a Content-Security-Policy header with the value 'default-src 'none''. This enhances security by specifying that no resources should be loaded from any source by default.

These changes aim to improve the security of the application.
The Content-Security-Policy header in the vercel.json file is updated to set the value to 'none' instead of 'default-src 'none''. This change enhances security by explicitly specifying that no resources should be loaded from any source by default.
…base configuration

The FirebaseConfig.js file is modified to use environment variables for the Firebase configuration values instead of hardcoding them. This change improves security by preventing sensitive information from being exposed in the codebase.

This commit follows the established convention of using the "chore" type for non-functional changes that do not affect the behavior of the code.
The vercel.json file is modified to remove the rewrites section and update the headers section. This change aims to improve the configuration of the Vercel deployment by removing unnecessary rewrites and making modifications to the headers.

This commit follows the established convention of using the "chore" type for non-functional changes that do not affect the behavior of the code.
@SanjayKhatiChhetri
Copy link
Member Author

deployment successful at Kaiku

@SanjayKhatiChhetri
Copy link
Member Author

can be merge without conflict with the base branch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant