GithubHelp home page GithubHelp logo

devaryakjha / fcm_notifications_nextjs Goto Github PK

View Code? Open in Web Editor NEW
12.0 1.0 2.0 144 KB

This project demonstrates how to use Firebase Cloud Messaging (FCM) with Next.js. The UI is minimal and displays a table that shows the index, from, title, body, and data properties of the messages received.

JavaScript 17.23% CSS 9.91% TypeScript 72.85%
fcm fcm-messaging fcm-push-notification firebase nextjs nextjs13

fcm_notifications_nextjs's Introduction

FCM with Next.js

This project demonstrates how to use Firebase Cloud Messaging (FCM) with Next.js. The UI is minimal and displays a table that shows the index, from, title, body, and data properties of the messages received.

Getting Started

To get started with this project, follow these steps:

  1. Clone the repository to your local machine.
  2. Install the dependencies by running bun install.
  3. Create a Firebase project and enable FCM.
  4. Rename .env.example to .env.development.local and add you firebase configuration to it.
  5. Run the development server by running bun run dev.
  6. Open http://localhost:3000 in your browser.

Usage

Once the development server is running, you can view the messages received by opening the browser console. The table on the page will also display the messages.

Contributing

Contributions are welcome! If you find a bug or have a feature request, please open an issue. If you would like to contribute code, please fork the repository and submit a pull request.

License

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

๐Ÿš€ About Me

Hello there! ๐Ÿ‘‹

I'm a 23-year-old frontend software developer based in Mumbai, India. Currently, I work at Tifin, a fintech startup based in the United States, where I contribute to building innovative and user-friendly software solutions.

Outside of work, I have a passion for exploring the magical world of Harry Potter and consider myself a devoted Potterhead. In my free time, you'll often find me engrossed in watching anime series or diving into captivating sci-fi movies and TV shows. I thoroughly enjoy indulging in these forms of entertainment, which not only entertain but also inspire me creatively.

Through my GitHub projects, I aim to showcase my skills and expertise as a frontend developer. I strive to create well-designed, efficient, and user-centric applications that make a positive impact. I believe in continuous learning and constantly honing my craft to stay up to date with the latest trends and technologies.

Thank you for visiting my GitHub profile. Feel free to explore my projects and don't hesitate to reach out if you have any questions or collaborations in mind. Let's connect and build amazing things together!

Happy coding! โœจ

Authors

๐Ÿ”— Socials

linkedin

fcm_notifications_nextjs's People

Contributors

devaryakjha avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

fcm_notifications_nextjs's Issues

Question

Is there a way to not hardcode this config in the SW file?

const firebaseConfig = {
apiKey: "your_keys",
authDomain: "your_keys",
projectId: "your_keys",
storageBucket: "your_keys",
messagingSenderId: "your_keys",
appId: "your_keys",
measurementId: "your_keys",
};

I know that process.env is a part of Node.js so It's not available in the vanilla javascript. but I'm looking for a way to not include them in the repo. to easily update them on deployment.

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.