Ecorfy Technologies

Ecorfy Technologies Contact information, map and directions, contact form, opening hours, services, ratings, photos, videos and announcements from Ecorfy Technologies, Software Company, HIG-129, Pramani Plaza, 5th Floor, KPHB, Hyderabad.

Ecorfy Technologies Pvt Ltd is top rated Software Development company with tons of experience in developing solutions for complex problems for businesses around the globe.

๐—œ๐—ผ๐—ง ๐—ง๐—ฒ๐—ฐ๐—ต๐—ป๐—ผ๐—น๐—ผ๐—ด๐˜† ๐—ฆ๐˜๐—ฎ๐—ฐ๐—ธ๐˜“๐˜ข๐˜บ๐˜ฆ๐˜ณ ๐Ÿฃ โ€“ ๐˜‹๐˜ฆ๐˜ท๐˜ช๐˜ค๐˜ฆ ๐˜๐˜ข๐˜ณ๐˜ฅ๐˜ธ๐˜ข๐˜ณ๐˜ฆ:Devices act as the interface between the physical and digital worlds. One ...
15/06/2021

๐—œ๐—ผ๐—ง ๐—ง๐—ฒ๐—ฐ๐—ต๐—ป๐—ผ๐—น๐—ผ๐—ด๐˜† ๐—ฆ๐˜๐—ฎ๐—ฐ๐—ธ

๐˜“๐˜ข๐˜บ๐˜ฆ๐˜ณ ๐Ÿฃ โ€“ ๐˜‹๐˜ฆ๐˜ท๐˜ช๐˜ค๐˜ฆ ๐˜๐˜ข๐˜ณ๐˜ฅ๐˜ธ๐˜ข๐˜ณ๐˜ฆ:
Devices act as the interface between the physical and digital worlds. One of the main goals of your device is to collect data.

๐˜“๐˜ข๐˜บ๐˜ฆ๐˜ณ ๐Ÿค โ€“ ๐˜‹๐˜ฆ๐˜ท๐˜ช๐˜ค๐˜ฆ ๐˜ด๐˜ฐ๐˜ง๐˜ต๐˜ธ๐˜ข๐˜ณ๐˜ฆ

The device software is the component that turns the device hardware into a โ€œsmart device.โ€ A particular hardware device can serve multiple applications depending on the embedded software it is running.Device software allows you to implement communication with the Cloud or other local devices. You can perform real-time analytics, data acquisition from your deviceโ€™s sensors, and even control.

Device software layer into two categories:

๐˜‹๐˜ฆ๐˜ท๐˜ช๐˜ค๐˜ฆ ๐˜–๐˜ฑ๐˜ฆ๐˜ณ๐˜ข๐˜ต๐˜ช๐˜ฏ๐˜จ ๐˜š๐˜บ๐˜ด๐˜ต๐˜ฆ๐˜ฎ
Whether your application requires real-time processing, the type of I/O support you need, and whether you need support for the full TCP/IP stack.

๐˜‹๐˜ฆ๐˜ท๐˜ช๐˜ค๐˜ฆ ๐˜ˆ๐˜ฑ๐˜ฑ๐˜ญ๐˜ช๐˜ค๐˜ข๐˜ต๐˜ช๐˜ฐ๐˜ฏ๐˜ด
You can focus on data acquisition and streaming to the Cloud, analytics, local control, etc.

๐˜“๐˜ข๐˜บ๐˜ฆ๐˜ณ ๐Ÿฅ โ€“ ๐˜Š๐˜ฐ๐˜ฎ๐˜ฎ๐˜ถ๐˜ฏ๐˜ช๐˜ค๐˜ข๐˜ต๐˜ช๐˜ฐ๐˜ฏ๐˜ด
Communications are the third layer of the IoT technology stack. Depending on your industry, some people refer to this layer of the IoT technology stack as โ€œconnectivity.โ€ Communications include both physical networks and the protocols you will use.

๐˜“๐˜ข๐˜บ๐˜ฆ๐˜ณ ๐Ÿฆ โ€“ ๐˜Š๐˜ญ๐˜ฐ๐˜ถ๐˜ฅ ๐˜—๐˜ญ๐˜ข๐˜ต๐˜ง๐˜ฐ๐˜ณ๐˜ฎ
The cloud platform is the backbone of your IoT solution. A Cloud platform provides the infrastructure that supports these critical areas:

๐˜‹๐˜ข๐˜ต๐˜ข ๐˜Š๐˜ฐ๐˜ญ๐˜ญ๐˜ฆ๐˜ค๐˜ต๐˜ช๐˜ฐ๐˜ฏ ๐˜ข๐˜ฏ๐˜ฅ ๐˜”๐˜ข๐˜ฏ๐˜ข๐˜จ๐˜ฆ๐˜ฎ๐˜ฆ๐˜ฏ๐˜ต
Your smart devices will stream information to the Cloud. One of the challenges of IoT applications is that they can generate an enormous amount of data.

๐˜ˆ๐˜ฏ๐˜ข๐˜ญ๐˜บ๐˜ต๐˜ช๐˜ค๐˜ด
Analytics is one of the critical components of any IoT solution. It is the ability to find insights from your data and not the data alone that makes your solution valuable.

๐˜Š๐˜ญ๐˜ฐ๐˜ถ๐˜ฅ ๐˜ˆ๐˜—๐˜๐˜ด
The Internet of Things is all about connecting devices and sharing data, which you can achieve by exposing APIs at either the Cloud level or the device level. Cloud APIs allow your customers and partners to either interact with your devices or to exchange data.

๐˜“๐˜ข๐˜บ๐˜ฆ๐˜ณ ๐Ÿง โ€“ ๐˜Š๐˜ญ๐˜ฐ๐˜ถ๐˜ฅ ๐˜ˆ๐˜ฑ๐˜ฑ๐˜ญ๐˜ช๐˜ค๐˜ข๐˜ต๐˜ช๐˜ฐ๐˜ฏ๐˜ด
This fifth layer of the IoT technology stack is the most easily understood by Product teams and Executives. Your end-user applications are the part of the system that your customers will see and interact with. Applications can also be divided into customer-facing versus internal apps. Customer-facing applications usually get the most attention, but in the case of IoT, internal applications are equally important.

We have developed multiple projects in IOT necessary training is given as per new requirement .If there is any requirement kindly visit us at ecorfytech.com we would be happy to assist you.

๐—ง๐—ผ๐—ฝ ๐— ๐—ผ๐—ฏ๐—ถ๐—น๐—ฒ ๐—”๐—ฝ๐—ฝ๐˜€ ๐—Ÿ๐—ฒ๐˜ƒ๐—ฒ๐—ฟ๐—ฎ๐—ด๐—ถ๐—ป๐—ด ๐—ถ๐—•๐—ฒ๐—ฎ๐—ฐ๐—ผ๐—ป ๐—ง๐—ฒ๐—ฐ๐—ต๐—ป๐—ผ๐—น๐—ผ๐—ด๐˜† ๐˜Š๐˜ฐ๐˜ข๐˜ค๐˜ฉ๐˜ฆ๐˜ญ๐˜ญ๐˜ขAvailable for both iOS and Android users, Coachella mobile app is...
15/06/2021

๐—ง๐—ผ๐—ฝ ๐— ๐—ผ๐—ฏ๐—ถ๐—น๐—ฒ ๐—”๐—ฝ๐—ฝ๐˜€ ๐—Ÿ๐—ฒ๐˜ƒ๐—ฒ๐—ฟ๐—ฎ๐—ด๐—ถ๐—ป๐—ด ๐—ถ๐—•๐—ฒ๐—ฎ๐—ฐ๐—ผ๐—ป ๐—ง๐—ฒ๐—ฐ๐—ต๐—ป๐—ผ๐—น๐—ผ๐—ด๐˜†

๐˜Š๐˜ฐ๐˜ข๐˜ค๐˜ฉ๐˜ฆ๐˜ญ๐˜ญ๐˜ข
Available for both iOS and Android users, Coachella mobile app is one of the telling examples of how to do it right with iBeacon. Thanks to the technology, guests of the art and music festival can enjoy contactless payments, so physical wallet is no longer needed. Whatโ€™s more, the app detects oneโ€™s location and tells what is happening around at a particular moment.

๐˜—๐˜ข๐˜ช๐˜ฅ๐˜Œ๐˜ข๐˜ด๐˜บ
One more app that benefits from iBeacon technology is PaidEasy. This beacon-enabled app allows customers to discover nearby restaurants, learn about special offers and make contactless payments with their smartphones. Thanks to beacons installed inside a restaurant, the app automatically sets up a check for everyone who enters and takes a seat. Then it gets synchronized with a local point-of-sale system, which means restaurant staff can add ordered items to the bill with ease. The app is available on both the App Store and Google Play.

๐˜š๐˜ต๐˜ข๐˜ณ๐˜ฃ๐˜ถ๐˜ค๐˜ฌ๐˜ด
What makes Starbucks app especially popular for coffee lovers is its beacon-enabled feature. To begin with, it allows people to track coffee beans throughout their journey to the coffee shop. Whatโ€™s more, it allows users to pay for their coffee and desserts without using a traditional wallet.

๐˜ž๐˜ช๐˜ด๐˜ฆ๐˜ญ๐˜บ
The next app that deserves to be on the list is Wisely. Available for both iOS and Android users, it links staff or restaurant with guests via the iBeacon technology. Needless to say, it improves customer experience and drives sales. A restaurant gets a push notification as soon as a guest arrives. Apart from it, a restaurantโ€™s staff can see information on a visitorโ€™s dining preferences. So it becomes possible for waiters to add a personal touch to the service. The app can be downloaded on both iOS and Android devices.

๐˜”๐˜ข๐˜ค๐˜บโ€™๐˜ด
The last but not the least brand using the iBeacon technology wisely is Macyโ€™s. The company has already deployed beacons in the majority of stores around the United States. The app tracks movements of customers within a store, sends push product recommendations and special offers relevant to their location. The app can be found on both the App Store and Google Play.

๐˜๐˜ช๐˜ฏ๐˜ข๐˜ญ ๐˜๐˜ฆ๐˜ณ๐˜ฅ๐˜ช๐˜ค๐˜ต
Summing up all the above, we must point out that the iBeacon technology is still on the rise. While some of the major brands have already implemented it, others only start to recognize its amazing potential. It means now is the best time to develop mobile apps powered by the iBeacon technology. To succeed, make sure youโ€™re working with the most professional mobile app developers. They must be familiar with all the ins and outs of developing beacon-enabled apps.

We at ECorfy encourage our teams to be well familiarized with latest technologies by attending conferences and workshops for future roles and responsibilities.

๐—”๐—ช๐—ฆ ๐—ฃ๐—ถ๐—ป๐—ฝ๐—ผ๐—ถ๐—ป๐˜ ๐—ฃ๐—น๐˜‚๐—ด๐—ถ๐—ป Amazon Pinpoint is a flexible and scalable outbound and inbound marketing communications service. Yo...
14/06/2021

๐—”๐—ช๐—ฆ ๐—ฃ๐—ถ๐—ป๐—ฝ๐—ผ๐—ถ๐—ป๐˜ ๐—ฃ๐—น๐˜‚๐—ด๐—ถ๐—ป

Amazon Pinpoint is a flexible and scalable outbound and inbound marketing communications service. You can connect with customers over channels like email, SMS, push, or voice.

Install analytics and /aws-pinpoint packages
๐™ฃ๐™ฅ๐™ข ๐™ž๐™ฃ๐™จ๐™ฉ๐™–๐™ก๐™ก ๐™–๐™ฃ๐™–๐™ก๐™ฎ๐™ฉ๐™ž๐™˜๐™จ
๐™ฃ๐™ฅ๐™ข ๐™ž๐™ฃ๐™จ๐™ฉ๐™–๐™ก๐™ก @๐™–๐™ฃ๐™–๐™ก๐™ฎ๐™ฉ๐™ž๐™˜๐™จ/๐™–๐™ฌ๐™จ-๐™ฅ๐™ž๐™ฃ๐™ฅ๐™ค๐™ž๐™ฃ๐™ฉ

The /aws-pinpoint package works in the browser. To use, install the package, include in your project and initialize the plugin with analytics.

Below is an example of how to use the browser plugin.

๐™ž๐™ข๐™ฅ๐™ค๐™ง๐™ฉ ๐˜ผ๐™ฃ๐™–๐™ก๐™ฎ๐™ฉ๐™ž๐™˜๐™จ ๐™›๐™ง๐™ค๐™ข '๐™–๐™ฃ๐™–๐™ก๐™ฎ๐™ฉ๐™ž๐™˜๐™จ'
๐™ž๐™ข๐™ฅ๐™ค๐™ง๐™ฉ ๐™–๐™ฌ๐™จ๐™‹๐™ž๐™ฃ๐™ฅ๐™ค๐™ž๐™ฃ๐™ฉ๐™‹๐™ก๐™ช๐™œ๐™ž๐™ฃ ๐™›๐™ง๐™ค๐™ข '@๐™–๐™ฃ๐™–๐™ก๐™ฎ๐™ฉ๐™ž๐™˜๐™จ/๐™–๐™ฌ๐™จ-๐™ฅ๐™ž๐™ฃ๐™ฅ๐™ค๐™ž๐™ฃ๐™ฉ'

๐™˜๐™ค๐™ฃ๐™จ๐™ฉ ๐™–๐™ฃ๐™–๐™ก๐™ฎ๐™ฉ๐™ž๐™˜๐™จ = ๐˜ผ๐™ฃ๐™–๐™ก๐™ฎ๐™ฉ๐™ž๐™˜๐™จ({
๐™–๐™ฅ๐™ฅ: '๐™–๐™ฌ๐™š๐™จ๐™ค๐™ข๐™š-๐™–๐™ฅ๐™ฅ',
๐™ฅ๐™ก๐™ช๐™œ๐™ž๐™ฃ๐™จ: [
๐™–๐™ฌ๐™จ๐™‹๐™ž๐™ฃ๐™ฅ๐™ค๐™ž๐™ฃ๐™ฉ๐™‹๐™ก๐™ช๐™œ๐™ž๐™ฃ({
๐™ฅ๐™ž๐™ฃ๐™ฅ๐™ค๐™ž๐™ฃ๐™ฉ๐˜ผ๐™ฅ๐™ฅ๐™„๐™™: '๐Ÿต๐Ÿฏ๐Ÿด๐™—๐™š๐™—๐™—๐Ÿญ๐™–๐™š๐Ÿต๐Ÿฑ๐Ÿฐ๐™š๐Ÿญ๐Ÿฎ๐Ÿฏ๐Ÿญ๐Ÿฏ๐Ÿฏ๐Ÿฎ๐Ÿญ๐Ÿฏ๐Ÿญ๐Ÿฒ๐Ÿฌ๐™›๐Ÿฎ๐™—๐Ÿฏ๐™—๐™š๐Ÿฐ',
๐™œ๐™š๐™ฉ๐˜พ๐™ง๐™š๐™™๐™š๐™ฃ๐™ฉ๐™ž๐™–๐™ก๐™จ: () => ๐˜ผ๐™ช๐™ฉ๐™.๐™˜๐™ช๐™ง๐™ง๐™š๐™ฃ๐™ฉ๐˜พ๐™ง๐™š๐™™๐™š๐™ฃ๐™ฉ๐™ž๐™–๐™ก๐™จ()
})
]
})

/* ๐™๐™ง๐™–๐™˜๐™  ๐™– ๐™ฅ๐™–๐™œ๐™š ๐™ซ๐™ž๐™š๐™ฌ */
๐™–๐™ฃ๐™–๐™ก๐™ฎ๐™ฉ๐™ž๐™˜๐™จ.๐™ฅ๐™–๐™œ๐™š()

/* ๐™๐™ง๐™–๐™˜๐™  ๐™– ๐™˜๐™ช๐™จ๐™ฉ๐™ค๐™ข ๐™š๐™ซ๐™š๐™ฃ๐™ฉ */
๐™–๐™ฃ๐™–๐™ก๐™ฎ๐™ฉ๐™ž๐™˜๐™จ.๐™ฉ๐™ง๐™–๐™˜๐™ ('๐™˜๐™–๐™ง๐™ฉ๐˜พ๐™๐™š๐™˜๐™ ๐™ค๐™ช๐™ฉ', {
๐™ž๐™ฉ๐™š๐™ข: '๐™ฅ๐™ž๐™ฃ๐™  ๐™จ๐™ค๐™˜๐™ ๐™จ',
๐™ฅ๐™ง๐™ž๐™˜๐™š: ๐Ÿฎ๐Ÿฌ
})

/* ๐™„๐™™๐™š๐™ฃ๐™ฉ๐™ž๐™›๐™ฎ ๐™– ๐™ซ๐™ž๐™จ๐™ž๐™ฉ๐™ค๐™ง */
๐™–๐™ฃ๐™–๐™ก๐™ฎ๐™ฉ๐™ž๐™˜๐™จ.๐™ž๐™™๐™š๐™ฃ๐™ฉ๐™ž๐™›๐™ฎ('๐™ช๐™จ๐™š๐™ง-๐™ž๐™™-๐™ญ๐™ฎ๐™ฏ', {
๐™›๐™ž๐™ง๐™จ๐™ฉ๐™‰๐™–๐™ข๐™š: '๐™—๐™ž๐™ก๐™ก',
๐™ก๐™–๐™จ๐™ฉ๐™‰๐™–๐™ข๐™š: '๐™ข๐™ช๐™ง๐™ง๐™–๐™ฎ'
})

After initializing analytics with the awsPinpointPlugin plugin, data will be sent into AWSPinpoint whenever analytics.page, analytics.track, or analytics.identify are called.

The AWSPinpoint client side browser plugin works with these analytic api methods:
โ€ข analytics.page - Sends page views into AWSPinpoint
โ€ข analytics.reset - Reset browser storage cookies & localstorage for AWSPinpoint values
โ€ข analytics.track - Track custom events and send to AWSPinpoint
โ€ข analytics.identify - Identify visitors and send details to AWSPinpoint

Browser API

๐™ž๐™ข๐™ฅ๐™ค๐™ง๐™ฉ ๐˜ผ๐™ฃ๐™–๐™ก๐™ฎ๐™ฉ๐™ž๐™˜๐™จ ๐™›๐™ง๐™ค๐™ข '๐™–๐™ฃ๐™–๐™ก๐™ฎ๐™ฉ๐™ž๐™˜๐™จ'
๐™ž๐™ข๐™ฅ๐™ค๐™ง๐™ฉ ๐™–๐™ฌ๐™จ๐™‹๐™ž๐™ฃ๐™ฅ๐™ค๐™ž๐™ฃ๐™ฉ๐™‹๐™ก๐™ช๐™œ๐™ž๐™ฃ ๐™›๐™ง๐™ค๐™ข '@๐™–๐™ฃ๐™–๐™ก๐™ฎ๐™ฉ๐™ž๐™˜๐™จ/๐™–๐™ฌ๐™จ-๐™ฅ๐™ž๐™ฃ๐™ฅ๐™ค๐™ž๐™ฃ๐™ฉ'
๐™˜๐™ค๐™ฃ๐™จ๐™ฉ ๐™–๐™ฃ๐™–๐™ก๐™ฎ๐™ฉ๐™ž๐™˜๐™จ = ๐˜ผ๐™ฃ๐™–๐™ก๐™ฎ๐™ฉ๐™ž๐™˜๐™จ({
๐™–๐™ฅ๐™ฅ: '๐™–๐™ฌ๐™š๐™จ๐™ค๐™ข๐™š-๐™–๐™ฅ๐™ฅ',
๐™ฅ๐™ก๐™ช๐™œ๐™ž๐™ฃ๐™จ: [
๐™–๐™ฌ๐™จ๐™‹๐™ž๐™ฃ๐™ฅ๐™ค๐™ž๐™ฃ๐™ฉ๐™‹๐™ก๐™ช๐™œ๐™ž๐™ฃ({
๐™ฅ๐™ž๐™ฃ๐™ฅ๐™ค๐™ž๐™ฃ๐™ฉ๐˜ผ๐™ฅ๐™ฅ๐™„๐™™: '๐Ÿต๐Ÿฏ๐Ÿด๐™—๐™š๐™—๐™—๐Ÿญ๐™–๐™š๐Ÿต๐Ÿฑ๐Ÿฐ๐™š๐Ÿญ๐Ÿฎ๐Ÿฏ๐Ÿญ๐Ÿฏ๐Ÿฏ๐Ÿฎ๐Ÿญ๐Ÿฏ๐Ÿญ๐Ÿฒ๐Ÿฌ๐™›๐Ÿฎ๐™—๐Ÿฏ๐™—๐™š๐Ÿฐ',
๐™œ๐™š๐™ฉ๐˜พ๐™ง๐™š๐™™๐™š๐™ฃ๐™ฉ๐™ž๐™–๐™ก๐™จ: () => ๐˜ผ๐™ช๐™ฉ๐™.๐™˜๐™ช๐™ง๐™ง๐™š๐™ฃ๐™ฉ๐˜พ๐™ง๐™š๐™™๐™š๐™ฃ๐™ฉ๐™ž๐™–๐™ก๐™จ()
})
]
})

We have 24/7 support team which takes care of client needs and queries on the products developed by us.If you have any requirement and in need of quick solutions do let us know we would be happy to assist you.Visit us at ecorfytech.com

๐—๐—ฒ๐—ป๐—ธ๐—ถ๐—ป๐˜€ ๐—ฃ๐—ถ๐—ฝ๐—ฒ๐—น๐—ถ๐—ป๐—ฒ Jenkins Pipeline can be created in the following ways:โ€ข ๐™๐™๐™ง๐™ค๐™ช๐™œ๐™ ๐™ฉ๐™๐™š ๐™˜๐™ก๐™–๐™จ๐™จ๐™ž๐™˜ ๐™๐™„/๐˜ฝ๐™ก๐™ช๐™š ๐™Š๐™˜๐™š๐™–๐™ฃ - you can dir...
14/06/2021

๐—๐—ฒ๐—ป๐—ธ๐—ถ๐—ป๐˜€ ๐—ฃ๐—ถ๐—ฝ๐—ฒ๐—น๐—ถ๐—ป๐—ฒ

Jenkins Pipeline can be created in the following ways:
โ€ข ๐™๐™๐™ง๐™ค๐™ช๐™œ๐™ ๐™ฉ๐™๐™š ๐™˜๐™ก๐™–๐™จ๐™จ๐™ž๐™˜ ๐™๐™„/๐˜ฝ๐™ก๐™ช๐™š ๐™Š๐™˜๐™š๐™–๐™ฃ - you can directly enter the basic Pipeline into Jenkins using the classic UI (or) using Blue Ocean UI -you can use the Blue Ocean UI to write Pipeline's Jenkinsfile and submit it to source control [here's more information regarding Blue Ocean]

โ€ข ๐™„๐™ฃ ๐™Ž๐˜พ๐™ˆ - Jenkinsfile can be written by hand and submitted to the project's source control repository.
Instead of relying on creating freestyle jobs and configuring it, Jenkins pipeline has a set of instructions for the Jenkins job to execute.

Jenkinsfile created by the classic UI is saved directly by Jenkins. Pipeline created from the Jenkins classic UI is saved in the root directory of Jenkins and script is executed in Jenkins script console. The Jenkins file is a base code for Jenkins which executes it as a Groovy script in Jenkins script console.

Anatomy of Jenkins File
The first line shebang defines the file as a Groovy language script:
#!/usr/bin/env groovy
In-line Pipeline files do not have a shebang because it is supplied internally.
// ๐™…๐™š๐™ฃ๐™ ๐™ž๐™ฃ๐™จ๐™›๐™ž๐™ก๐™š (๐˜ฟ๐™š๐™˜๐™ก๐™–๐™ง๐™–๐™ฉ๐™ž๐™ซ๐™š ๐™‹๐™ž๐™ฅ๐™š๐™ก๐™ž๐™ฃ๐™š)
๐™ฅ๐™ž๐™ฅ๐™š๐™ก๐™ž๐™ฃ๐™š {
๐™–๐™œ๐™š๐™ฃ๐™ฉ ๐™–๐™ฃ๐™ฎ
๐™จ๐™ฉ๐™–๐™œ๐™š๐™จ {
๐™จ๐™ฉ๐™–๐™œ๐™š('๐™Ž๐™ฉ๐™–๐™œ๐™š ๐Ÿญ') {
๐™จ๐™ฉ๐™š๐™ฅ๐™จ {
๐™š๐™˜๐™๐™ค '๐™ƒ๐™š๐™ก๐™ก๐™ค ๐™ฌ๐™ค๐™ง๐™ก๐™™!'
}
}
}
}

The same above written (declarative pipeline) example can be written in scripted pipeline code as well.
A scripted pipeline is a groovy-based DSL. It provides greater flexibility and scalability for Jenkins users than the Declarative pipeline.

Groovy scripts are not necessarily suitable for all users, so Jenkins created the Declarative pipeline. The Declarative Pipeline syntax is more stringent. It needs to use Jenkins' predefined DSL structure, which provides a simpler and more assertive syntax for writing Jenkins pipelines.
// ๐™…๐™š๐™ฃ๐™ ๐™ž๐™ฃ๐™จ๐™›๐™ž๐™ก๐™š (๐™Ž๐™˜๐™ง๐™ž๐™ฅ๐™ฉ๐™š๐™™ ๐™‹๐™ž๐™ฅ๐™š๐™ก๐™ž๐™ฃ๐™š)
๐™ฃ๐™ค๐™™๐™š { // ๐™ฃ๐™ค๐™™๐™š/๐™–๐™œ๐™š๐™ฃ๐™ฉ
๐™จ๐™ฉ๐™–๐™œ๐™š('๐™Ž๐™ฉ๐™–๐™œ๐™š ๐Ÿญ') {
๐™š๐™˜๐™๐™ค '๐™ƒ๐™š๐™ก๐™ก๐™ค ๐™’๐™ค๐™ง๐™ก๐™™' // ๐™š๐™˜๐™๐™ค ๐™ƒ๐™š๐™ก๐™ก๐™ค ๐™’๐™ค๐™ง๐™ก๐™™
}
}
Node/agent

This defines where to execute the code on which machine.
๐™ฅ๐™ž๐™ฅ๐™š๐™ก๐™ž๐™ฃ๐™š {
๐™ฃ๐™ค๐™™๐™š ๐™–๐™ฃ๐™ฎ
}
๐™ค๐™ง
๐™ฅ๐™ž๐™ฅ๐™š๐™ก๐™ž๐™ฃ๐™š {
๐™–๐™œ๐™š๐™ฃ๐™ฉ { ๐™ฃ๐™ค๐™™๐™š { ๐™ก๐™–๐™—๐™š๐™ก '๐™ก๐™–๐™—๐™š๐™ก๐™‰๐™–๐™ข๐™š' } }
}
The section must be defined at the top-level inside the pipeline block, but stage-level usage is optional.

We at ECorfy use Jenkins for continuous integration for build and test our code.Kindly visit us at ecorfytech.com for any requirement we would be happy to assist you.

๐—ฆ๐—ฒ๐˜๐˜๐—ถ๐—ป๐—ด ๐˜‚๐—ฝ ๐—™๐—ฎ๐˜€๐˜๐—น๐—ฎ๐—ป๐—ฒ ๐—ถ๐—ป ๐—”๐—ป๐—ฑ๐—ฟ๐—ผ๐—ถ๐—ฑ ๐—ฎ๐—ป๐—ฑ ๐—œ๐—ข๐—ฆFastlane is pretty much the standard for automating beta deployments of iOS and An...
11/06/2021

๐—ฆ๐—ฒ๐˜๐˜๐—ถ๐—ป๐—ด ๐˜‚๐—ฝ ๐—™๐—ฎ๐˜€๐˜๐—น๐—ฎ๐—ป๐—ฒ ๐—ถ๐—ป ๐—”๐—ป๐—ฑ๐—ฟ๐—ผ๐—ถ๐—ฑ ๐—ฎ๐—ป๐—ฑ ๐—œ๐—ข๐—ฆ

Fastlane is pretty much the standard for automating beta deployments of iOS and Android apps.
Firstly need to set up fastlane/ folders in both the ios/ and android/ folders. You can do that by running fastlane init in each folder. Itโ€™s not completely necessary to do it this way, but I find it simpler and much more readable to keep the configs separate.

๐˜๐˜ข๐˜ด๐˜ต๐˜ญ๐˜ข๐˜ฏ๐˜ฆ ๐˜ช๐˜ฏ๐˜ด๐˜ต๐˜ข๐˜ญ๐˜ญ๐˜ข๐˜ต๐˜ช๐˜ฐ๐˜ฏ

Do not install fastlane using gem install. Instead, install fastlane using bundler. First, install bundler with gem install bundler -v 1.17.3 (or the latest 1.x version)1, add the following files to your project, then run bundle update top-level.

# ๐™‚๐™š๐™ข๐™›๐™ž๐™ก๐™š
๐™จ๐™ค๐™ช๐™ง๐™˜๐™š "๐™๐™ฉ๐™ฉ๐™ฅ๐™จ://๐™ง๐™ช๐™—๐™ฎ๐™œ๐™š๐™ข๐™จ.๐™ค๐™ง๐™œ"
๐™œ๐™š๐™ข "๐™›๐™–๐™จ๐™ฉ๐™ก๐™–๐™ฃ๐™š"
# .๐™—๐™ช๐™ฃ๐™™๐™ก๐™š/๐™˜๐™ค๐™ฃ๐™›๐™ž๐™œ
# ๐™‰๐™ค๐™ฉ๐™š ๐™ฉ๐™๐™š ๐™จ๐™ž๐™ฃ๐™œ๐™ก๐™š '.'
---
๐˜ฝ๐™๐™‰๐˜ฟ๐™‡๐™€_๐™‹๐˜ผ๐™๐™ƒ: "./๐™ซ๐™š๐™ฃ๐™™๐™ค๐™ง/๐™—๐™ช๐™ฃ๐™™๐™ก๐™š"
# ๐™ž๐™ค๐™จ/.๐™—๐™ช๐™ฃ๐™™๐™ก๐™š/๐™˜๐™ค๐™ฃ๐™›๐™ž๐™œ
---
๐˜ฝ๐™๐™‰๐˜ฟ๐™‡๐™€_๐™‹๐˜ผ๐™๐™ƒ: "../๐™ซ๐™š๐™ฃ๐™™๐™ค๐™ง/๐™—๐™ช๐™ฃ๐™™๐™ก๐™š"
# ๐™–๐™ฃ๐™™๐™ง๐™ค๐™ž๐™™/.๐™—๐™ช๐™ฃ๐™™๐™ก๐™š/๐™˜๐™ค๐™ฃ๐™›๐™ž๐™œ
---
๐˜ฝ๐™๐™‰๐˜ฟ๐™‡๐™€_๐™‹๐˜ผ๐™๐™ƒ: "../๐™ซ๐™š๐™ฃ๐™™๐™ค๐™ง/๐™—๐™ช๐™ฃ๐™™๐™ก๐™š"

Add vendor/ to your .gitignore.
Now run bundle exec fastlane init in both the ios/ and android/ folders.

๐˜‹๐˜ฆ๐˜ฑ๐˜ญ๐˜ฐ๐˜บ๐˜ช๐˜ฏ๐˜จ ๐˜ต๐˜ฉ๐˜ฆ ๐˜ˆ๐˜ฏ๐˜ฅ๐˜ณ๐˜ฐ๐˜ช๐˜ฅ ๐˜ข๐˜ฑ๐˜ฑ ๐˜ถ๐˜ด๐˜ช๐˜ฏ๐˜จ ๐˜ง๐˜ข๐˜ด๐˜ต๐˜ญ๐˜ข๐˜ฏ๐˜ฆ

# ๐™–๐™ฃ๐™™๐™ง๐™ค๐™ž๐™™/๐™›๐™–๐™จ๐™ฉ๐™ก๐™–๐™ฃ๐™š/๐™๐™–๐™จ๐™ฉ๐™›๐™ž๐™ก๐™š
๐™™๐™š๐™จ๐™˜ "๐˜ฝ๐™ช๐™ž๐™ก๐™™ ๐™ฉ๐™๐™š ๐˜ผ๐™ฃ๐™™๐™ง๐™ค๐™ž๐™™ ๐™–๐™ฅ๐™ฅ"
๐™ก๐™–๐™ฃ๐™š :๐™–๐™จ๐™จ๐™š๐™ข๐™—๐™ก๐™š_๐™—๐™ช๐™ž๐™ก๐™™ ๐™™๐™ค
๐™ฅ๐™ง๐™ค๐™ฅ๐™š๐™ง๐™ฉ๐™ž๐™š๐™จ = {
"๐™–๐™ฃ๐™™๐™ง๐™ค๐™ž๐™™.๐™ž๐™ฃ๐™Ÿ๐™š๐™˜๐™ฉ๐™š๐™™.๐™จ๐™ž๐™œ๐™ฃ๐™ž๐™ฃ๐™œ.๐™จ๐™ฉ๐™ค๐™ง๐™š.๐™›๐™ž๐™ก๐™š" => "๐™ง๐™š๐™ก๐™š๐™–๐™จ๐™š-๐™ ๐™š๐™ฎ.๐™ ๐™š๐™ฎ๐™จ๐™ฉ๐™ค๐™ง๐™š",
"๐™–๐™ฃ๐™™๐™ง๐™ค๐™ž๐™™.๐™ž๐™ฃ๐™Ÿ๐™š๐™˜๐™ฉ๐™š๐™™.๐™จ๐™ž๐™œ๐™ฃ๐™ž๐™ฃ๐™œ.๐™จ๐™ฉ๐™ค๐™ง๐™š.๐™ฅ๐™–๐™จ๐™จ๐™ฌ๐™ค๐™ง๐™™" => ๐™€๐™‰๐™‘['๐˜ผ๐™‰๐˜ฟ๐™๐™Š๐™„๐˜ฟ_๐™Ž๐™๐™Š๐™๐™€_๐™‹๐˜ผ๐™Ž๐™Ž๐™’๐™Š๐™๐˜ฟ'],
"๐™–๐™ฃ๐™™๐™ง๐™ค๐™ž๐™™.๐™ž๐™ฃ๐™Ÿ๐™š๐™˜๐™ฉ๐™š๐™™.๐™จ๐™ž๐™œ๐™ฃ๐™ž๐™ฃ๐™œ.๐™ ๐™š๐™ฎ.๐™–๐™ก๐™ž๐™–๐™จ" => ๐™€๐™‰๐™‘['๐˜ผ๐™‰๐˜ฟ๐™๐™Š๐™„๐˜ฟ_๐™†๐™€๐™”_๐˜ผ๐™‡๐™„๐˜ผ๐™Ž'],
"๐™–๐™ฃ๐™™๐™ง๐™ค๐™ž๐™™.๐™ž๐™ฃ๐™Ÿ๐™š๐™˜๐™ฉ๐™š๐™™.๐™จ๐™ž๐™œ๐™ฃ๐™ž๐™ฃ๐™œ.๐™ ๐™š๐™ฎ.๐™ฅ๐™–๐™จ๐™จ๐™ฌ๐™ค๐™ง๐™™" => ๐™€๐™‰๐™‘['๐˜ผ๐™‰๐˜ฟ๐™๐™Š๐™„๐˜ฟ_๐™Ž๐™๐™Š๐™๐™€_๐™‹๐˜ผ๐™Ž๐™Ž๐™’๐™Š๐™๐˜ฟ']
}

๐™œ๐™ง๐™–๐™™๐™ก๐™š(๐™ฉ๐™–๐™จ๐™ : "๐™–๐™จ๐™จ๐™š๐™ข๐™—๐™ก๐™š", ๐™—๐™ช๐™ž๐™ก๐™™_๐™ฉ๐™ฎ๐™ฅ๐™š: "๐™๐™š๐™ก๐™š๐™–๐™จ๐™š", ๐™ฅ๐™ง๐™ค๐™ฅ๐™š๐™ง๐™ฉ๐™ž๐™š๐™จ: ๐™ฅ๐™ง๐™ค๐™ฅ๐™š๐™ง๐™ฉ๐™ž๐™š๐™จ)
๐™š๐™ฃ๐™™

๐™™๐™š๐™จ๐™˜ "๐˜ฝ๐™ช๐™ž๐™ก๐™™ ๐™–๐™ฃ๐™™ ๐™™๐™š๐™ฅ๐™ก๐™ค๐™ฎ ๐™ฉ๐™ค ๐™‚๐™ค๐™ค๐™œ๐™ก๐™š ๐™‹๐™ก๐™–๐™ฎ"
๐™ก๐™–๐™ฃ๐™š :๐™™๐™š๐™ฅ๐™ก๐™ค๐™ฎ ๐™™๐™ค
๐™–๐™จ๐™จ๐™š๐™ข๐™—๐™ก๐™š_๐™—๐™ช๐™ž๐™ก๐™™
# ๐˜พ๐™–๐™ฃ ๐™—๐™š ๐™˜๐™๐™–๐™ฃ๐™œ๐™š๐™™ ๐™ฉ๐™ค ๐™–๐™ฃ๐™ค๐™ฉ๐™๐™š๐™ง ๐™ฉ๐™ง๐™–๐™˜๐™  (๐™š.๐™œ. '๐™—๐™š๐™ฉ๐™–')
๐™ช๐™ฅ๐™ก๐™ค๐™–๐™™_๐™ฉ๐™ค_๐™ฅ๐™ก๐™–๐™ฎ_๐™จ๐™ฉ๐™ค๐™ง๐™š(๐™ฉ๐™ง๐™–๐™˜๐™ : '๐™–๐™ก๐™ฅ๐™๐™–')
๐™š๐™ฃ๐™™

๐˜‹๐˜ฆ๐˜ฑ๐˜ญ๐˜ฐ๐˜บ๐˜ช๐˜ฏ๐˜จ ๐˜ต๐˜ฉ๐˜ฆ ๐˜ช๐˜–๐˜š ๐˜ข๐˜ฑ๐˜ฑ ๐˜ถ๐˜ด๐˜ช๐˜ฏ๐˜จ ๐˜ง๐˜ข๐˜ด๐˜ต๐˜ญ๐˜ข๐˜ฏ๐˜ฆ

# ๐™ž๐™ค๐™จ/๐™›๐™–๐™จ๐™ฉ๐™ก๐™–๐™ฃ๐™š/๐™๐™–๐™จ๐™ฉ๐™›๐™ž๐™ก๐™š
๐™™๐™š๐™จ๐™˜ "๐™‹๐™ช๐™จ๐™ ๐™– ๐™ฃ๐™š๐™ฌ ๐™—๐™š๐™ฉ๐™– ๐™—๐™ช๐™ž๐™ก๐™™ ๐™ฉ๐™ค ๐™๐™š๐™จ๐™ฉ๐™๐™ก๐™ž๐™œ๐™๐™ฉ"
๐™—๐™š๐™›๐™ค๐™ง๐™š_๐™–๐™ก๐™ก ๐™™๐™ค
# ๐™Ž๐™š๐™ฉ๐™จ ๐™ช๐™ฅ ๐™›๐™–๐™จ๐™ฉ๐™ก๐™–๐™ฃ๐™š ๐™ข๐™–๐™ฉ๐™˜๐™ ๐™ค๐™ฃ ๐˜พ๐™ž๐™ง๐™˜๐™ก๐™š ๐˜พ๐™„
# ๐™›๐™ค๐™ง ๐™ง๐™š๐™–๐™™๐™ค๐™ฃ๐™ก๐™ฎ ๐™˜๐™ค๐™™๐™š ๐™จ๐™ž๐™œ๐™ฃ๐™ž๐™ฃ๐™œ
๐™จ๐™š๐™ฉ๐™ช๐™ฅ_๐™˜๐™ž๐™ง๐™˜๐™ก๐™š_๐™˜๐™ž
๐™š๐™ฃ๐™™

๐™™๐™š๐™จ๐™˜ "๐˜ฝ๐™ช๐™ž๐™ก๐™™ ๐™ฉ๐™๐™š ๐™ž๐™Š๐™Ž ๐™–๐™ฅ๐™ฅ"
๐™ก๐™–๐™ฃ๐™š :๐™–๐™จ๐™จ๐™š๐™ข๐™—๐™ก๐™š_๐™—๐™ช๐™ž๐™ก๐™™ ๐™™๐™ค
๐™ข๐™–๐™ฉ๐™˜๐™(๐™ฉ๐™ฎ๐™ฅ๐™š: "๐™–๐™ฅ๐™ฅ๐™จ๐™ฉ๐™ค๐™ง๐™š")
๐™œ๐™ฎ๐™ข(
๐™จ๐™˜๐™๐™š๐™ข๐™š: "$๐™‹๐™๐™€๐™๐™€๐™๐™๐™€๐˜ฟ_๐™Ž๐˜พ๐™ƒ๐™€๐™ˆ๐™€",
๐™š๐™ญ๐™ฅ๐™ค๐™ง๐™ฉ_๐™ข๐™š๐™ฉ๐™๐™ค๐™™: "๐™–๐™ฅ๐™ฅ-๐™จ๐™ฉ๐™ค๐™ง๐™š",
๐™š๐™ญ๐™ฅ๐™ค๐™ง๐™ฉ_๐™ค๐™ฅ๐™ฉ๐™ž๐™ค๐™ฃ๐™จ: {
๐™ฅ๐™ง๐™ค๐™ซ๐™ž๐™จ๐™ž๐™ค๐™ฃ๐™ž๐™ฃ๐™œ๐™‹๐™ง๐™ค๐™›๐™ž๐™ก๐™š๐™จ: {
"๐™˜๐™ค๐™ข.๐™ค๐™ง๐™œ_๐™š๐™ญ๐™–๐™ข๐™ฅ๐™ก๐™š.๐™š๐™ญ๐™–๐™ข๐™ฅ๐™ก๐™š" => "๐™ข๐™–๐™ฉ๐™˜๐™ ๐˜ผ๐™ฅ๐™ฅ๐™Ž๐™ฉ๐™ค๐™ง๐™š ๐™˜๐™ค๐™ข.๐™ค๐™ง๐™œ_๐™š๐™ญ๐™–๐™ข๐™ฅ๐™ก๐™š.๐™š๐™ญ๐™–๐™ข๐™ฅ๐™ก๐™š"
}
}
)
๐™š๐™ฃ๐™™

We at Ecorfy use Fastlane for our deployment and also for automating the development workflow. If you have any requirement do let us know and visit ecorfytech.com for any enquires.We would be happy to assist you.

๐—ฃ๐—ช๐—” ๐—”๐—ฃ๐—ฃ๐—Ÿ๐—œ๐—–๐—”๐—ง๐—œ๐—ข๐—ก๐—ฆ ๐—–๐—”๐—ก ๐—ช๐—ข๐—ฅ๐—ž๐—ฆ ๐—ข๐—™๐—™๐—Ÿ๐—œ๐—ก๐—˜ ๐—ง๐—ข๐—ขWhen building your PWA, you can also develop a custom offline page as part of the ...
11/06/2021

๐—ฃ๐—ช๐—” ๐—”๐—ฃ๐—ฃ๐—Ÿ๐—œ๐—–๐—”๐—ง๐—œ๐—ข๐—ก๐—ฆ ๐—–๐—”๐—ก ๐—ช๐—ข๐—ฅ๐—ž๐—ฆ ๐—ข๐—™๐—™๐—Ÿ๐—œ๐—ก๐—˜ ๐—ง๐—ข๐—ข

When building your PWA, you can also develop a custom offline page as part of the core. However, itโ€™s much more user-friendly if your PWA continues to function even without an Internet connection

You can achieve a more significant user experience by using cached content and background syncing.

๐˜พ๐™–๐™˜๐™๐™š๐™™ ๐™˜๐™ค๐™ฃ๐™ฉ๐™š๐™ฃ๐™ฉ ๐™ฌ๐™ž๐™ฉ๐™ ๐™„๐™ฃ๐™™๐™š๐™ญ๐™š๐™™๐˜ฟ๐˜ฝ

IndexedDB is an in-browser NoSQL storage system that you can use to cache and retrieve the required data to make your PWA work offline.
๐˜๐˜ฐ๐˜ธ๐˜ฆ๐˜ท๐˜ฆ๐˜ณ, ๐˜ฏ๐˜ฐ๐˜ต ๐˜ข๐˜ญ๐˜ญ ๐˜ฃ๐˜ณ๐˜ฐ๐˜ธ๐˜ด๐˜ฆ๐˜ณ๐˜ด ๐˜ด๐˜ถ๐˜ฑ๐˜ฑ๐˜ฐ๐˜ณ๐˜ต ๐˜๐˜ฏ๐˜ฅ๐˜ฆ๐˜น๐˜ฆ๐˜ฅ๐˜‹๐˜‰, ๐˜ด๐˜ฐ ๐˜ต๐˜ฉ๐˜ฆ ๐˜ง๐˜ช๐˜ณ๐˜ด๐˜ต ๐˜ต๐˜ฉ๐˜ช๐˜ฏ๐˜จ ๐˜บ๐˜ฐ๐˜ถ ๐˜ธ๐˜ข๐˜ฏ๐˜ต ๐˜ต๐˜ฐ ๐˜ฅ๐˜ฐ ๐˜ช๐˜ด ๐˜ค๐˜ฉ๐˜ฆ๐˜ค๐˜ฌ ๐˜ช๐˜ง ๐˜ต๐˜ฉ๐˜ฆ ๐˜ถ๐˜ด๐˜ฆ๐˜ณโ€™๐˜ด ๐˜ฃ๐˜ณ๐˜ฐ๐˜ธ๐˜ด๐˜ฆ๐˜ณ ๐˜ด๐˜ถ๐˜ฑ๐˜ฑ๐˜ฐ๐˜ณ๐˜ต๐˜ด ๐˜ช๐˜ต.

๐™ž๐™› (!('๐™ž๐™ฃ๐™™๐™š๐™ญ๐™š๐™™๐˜ฟ๐˜ฝ' ๐™ž๐™ฃ ๐™ฌ๐™ž๐™ฃ๐™™๐™ค๐™ฌ)) {
๐™˜๐™ค๐™ฃ๐™จ๐™ค๐™ก๐™š.๐™ก๐™ค๐™œ('๐™๐™๐™ž๐™จ ๐™—๐™ง๐™ค๐™ฌ๐™จ๐™š๐™ง ๐™™๐™ค๐™š๐™จ๐™ฃ\'๐™ฉ ๐™จ๐™ช๐™ฅ๐™ฅ๐™ค๐™ง๐™ฉ ๐™„๐™ฃ๐™™๐™š๐™ญ๐™š๐™™๐˜ฟ๐˜ฝ');
๐™ง๐™š๐™ฉ๐™ช๐™ง๐™ฃ;
}

After this, you can create cached content with the IndexedDB API. Code for opening a database, adding an object store, and adding an item to this store.

๐™ซ๐™–๐™ง ๐™™๐™—;

๐™ซ๐™–๐™ง ๐™ค๐™ฅ๐™š๐™ฃ๐™๐™š๐™ฆ๐™ช๐™š๐™จ๐™ฉ = ๐™ž๐™ฃ๐™™๐™š๐™ญ๐™š๐™™๐˜ฟ๐˜ฝ.๐™ค๐™ฅ๐™š๐™ฃ('๐™ฉ๐™š๐™จ๐™ฉ_๐™™๐™—', ๐Ÿญ);

๐™ค๐™ฅ๐™š๐™ฃ๐™๐™š๐™ฆ๐™ช๐™š๐™จ๐™ฉ.๐™ค๐™ฃ๐™ช๐™ฅ๐™œ๐™ง๐™–๐™™๐™š๐™ฃ๐™š๐™š๐™™๐™š๐™™ = ๐™›๐™ช๐™ฃ๐™˜๐™ฉ๐™ž๐™ค๐™ฃ(๐™š) {
๐™ซ๐™–๐™ง ๐™™๐™— = ๐™š.๐™ฉ๐™–๐™ง๐™œ๐™š๐™ฉ.๐™ง๐™š๐™จ๐™ช๐™ก๐™ฉ;
๐™˜๐™ค๐™ฃ๐™จ๐™ค๐™ก๐™š.๐™ก๐™ค๐™œ('๐™ง๐™ช๐™ฃ๐™ฃ๐™ž๐™ฃ๐™œ ๐™ค๐™ฃ๐™ช๐™ฅ๐™œ๐™ง๐™–๐™™๐™š๐™ฃ๐™š๐™š๐™™๐™š๐™™');
๐™ž๐™› (!๐™™๐™—.๐™ค๐™—๐™Ÿ๐™š๐™˜๐™ฉ๐™Ž๐™ฉ๐™ค๐™ง๐™š๐™‰๐™–๐™ข๐™š๐™จ.๐™˜๐™ค๐™ฃ๐™ฉ๐™–๐™ž๐™ฃ๐™จ('๐™จ๐™ฉ๐™ค๐™ง๐™š')) {
๐™ซ๐™–๐™ง ๐™จ๐™ฉ๐™ค๐™ง๐™š๐™Š๐™Ž = ๐™™๐™—.๐™˜๐™ง๐™š๐™–๐™ฉ๐™š๐™Š๐™—๐™Ÿ๐™š๐™˜๐™ฉ๐™Ž๐™ฉ๐™ค๐™ง๐™š('๐™จ๐™ฉ๐™ค๐™ง๐™š',
{๐™ ๐™š๐™ฎ๐™‹๐™–๐™ฉ๐™: '๐™ฃ๐™–๐™ข๐™š'});
}
};
๐™ค๐™ฅ๐™š๐™ฃ๐™๐™š๐™ฆ๐™ช๐™š๐™จ๐™ฉ.๐™ค๐™ฃ๐™จ๐™ช๐™˜๐™˜๐™š๐™จ๐™จ = ๐™›๐™ช๐™ฃ๐™˜๐™ฉ๐™ž๐™ค๐™ฃ(๐™š) {
๐™˜๐™ค๐™ฃ๐™จ๐™ค๐™ก๐™š.๐™ก๐™ค๐™œ('๐™ง๐™ช๐™ฃ๐™ฃ๐™ž๐™ฃ๐™œ ๐™ค๐™ฃ๐™จ๐™ช๐™˜๐™˜๐™š๐™จ๐™จ');
๐™™๐™— = ๐™š.๐™ฉ๐™–๐™ง๐™œ๐™š๐™ฉ.๐™ง๐™š๐™จ๐™ช๐™ก๐™ฉ;
๐™–๐™™๐™™๐™„๐™ฉ๐™š๐™ข();
};
๐™ค๐™ฅ๐™š๐™ฃ๐™๐™š๐™ฆ๐™ช๐™š๐™จ๐™ฉ.๐™ค๐™ฃ๐™š๐™ง๐™ง๐™ค๐™ง = ๐™›๐™ช๐™ฃ๐™˜๐™ฉ๐™ž๐™ค๐™ฃ(๐™š) {
๐™˜๐™ค๐™ฃ๐™จ๐™ค๐™ก๐™š.๐™ก๐™ค๐™œ('๐™ค๐™ฃ๐™š๐™ง๐™ง๐™ค๐™ง!');
๐™˜๐™ค๐™ฃ๐™จ๐™ค๐™ก๐™š.๐™™๐™ž๐™ง(๐™š);
};

๐™›๐™ช๐™ฃ๐™˜๐™ฉ๐™ž๐™ค๐™ฃ ๐™–๐™™๐™™๐™„๐™ฉ๐™š๐™ข() {
๐™ซ๐™–๐™ง ๐™ฉ๐™ง๐™–๐™ฃ๐™จ๐™–๐™˜๐™ฉ๐™ž๐™ค๐™ฃ = ๐™™๐™—.๐™ฉ๐™ง๐™–๐™ฃ๐™จ๐™–๐™˜๐™ฉ๐™ž๐™ค๐™ฃ(['๐™จ๐™ฉ๐™ค๐™ง๐™š'], '๐™ง๐™š๐™–๐™™๐™ฌ๐™ง๐™ž๐™ฉ๐™š');
๐™ซ๐™–๐™ง ๐™จ๐™ฉ๐™ค๐™ง๐™š = ๐™ฉ๐™ง๐™–๐™ฃ๐™จ๐™–๐™˜๐™ฉ๐™ž๐™ค๐™ฃ.๐™ค๐™—๐™Ÿ๐™š๐™˜๐™ฉ๐™Ž๐™ฉ๐™ค๐™ง๐™š('๐™จ๐™ฉ๐™ค๐™ง๐™š');
๐™ซ๐™–๐™ง ๐™ž๐™ฉ๐™š๐™ข = {
๐™ฃ๐™–๐™ข๐™š: '๐™—๐™–๐™ฃ๐™–๐™ฃ๐™–',
๐™ฅ๐™ง๐™ž๐™˜๐™š: '$๐Ÿฎ.๐Ÿต๐Ÿต',
๐™™๐™š๐™จ๐™˜๐™ง๐™ž๐™ฅ๐™ฉ๐™ž๐™ค๐™ฃ: '๐™„๐™ฉ ๐™ž๐™จ ๐™– ๐™ฅ๐™ช๐™ง๐™ฅ๐™ก๐™š ๐™—๐™–๐™ฃ๐™–๐™ฃ๐™–!',
๐™˜๐™ง๐™š๐™–๐™ฉ๐™š๐™™: ๐™ฃ๐™š๐™ฌ ๐˜ฟ๐™–๐™ฉ๐™š().๐™œ๐™š๐™ฉ๐™๐™ž๐™ข๐™š()
};

๐™ซ๐™–๐™ง ๐™ง๐™š๐™ฆ๐™ช๐™š๐™จ๐™ฉ = ๐™จ๐™ฉ๐™ค๐™ง๐™š.๐™–๐™™๐™™(๐™ž๐™ฉ๐™š๐™ข);

๐™ง๐™š๐™ฆ๐™ช๐™š๐™จ๐™ฉ.๐™ค๐™ฃ๐™š๐™ง๐™ง๐™ค๐™ง = ๐™›๐™ช๐™ฃ๐™˜๐™ฉ๐™ž๐™ค๐™ฃ(๐™š) {
๐™˜๐™ค๐™ฃ๐™จ๐™ค๐™ก๐™š.๐™ก๐™ค๐™œ('๐™€๐™ง๐™ง๐™ค๐™ง', ๐™š.๐™ฉ๐™–๐™ง๐™œ๐™š๐™ฉ.๐™š๐™ง๐™ง๐™ค๐™ง.๐™ฃ๐™–๐™ข๐™š);
};
๐™ง๐™š๐™ฆ๐™ช๐™š๐™จ๐™ฉ.๐™ค๐™ฃ๐™จ๐™ช๐™˜๐™˜๐™š๐™จ๐™จ = ๐™›๐™ช๐™ฃ๐™˜๐™ฉ๐™ž๐™ค๐™ฃ(๐™š) {
๐™˜๐™ค๐™ฃ๐™จ๐™ค๐™ก๐™š.๐™ก๐™ค๐™œ('๐™’๐™ค๐™ค๐™ฉ! ๐˜ฟ๐™ž๐™™ ๐™ž๐™ฉ');
};
}

๐˜ฝ๐™–๐™˜๐™ ๐™œ๐™ง๐™ค๐™ช๐™ฃ๐™™ ๐™จ๐™ฎ๐™ฃ๐™˜

๐˜๐˜ง ๐˜บ๐˜ฐ๐˜ถ๐˜ณ ๐˜—๐˜ž๐˜ˆ ๐˜ด๐˜บ๐˜ฏ๐˜ค๐˜ด ๐˜ฅ๐˜ข๐˜ต๐˜ข ๐˜ช๐˜ฏ ๐˜ต๐˜ฉ๐˜ฆ ๐˜ฃ๐˜ข๐˜ค๐˜ฌ๐˜จ๐˜ณ๐˜ฐ๐˜ถ๐˜ฏ๐˜ฅ, ๐˜ต๐˜ฉ๐˜ฆ ๐˜ถ๐˜ด๐˜ฆ๐˜ณ ๐˜ค๐˜ข๐˜ฏ ๐˜ต๐˜ข๐˜ฌ๐˜ฆ ๐˜ข๐˜ค๐˜ต๐˜ช๐˜ฐ๐˜ฏ๐˜ด ๐˜ธ๐˜ฉ๐˜ช๐˜ญ๐˜ฆ ๐˜ฐ๐˜ง๐˜ง๐˜ญ๐˜ช๐˜ฏ๐˜ฆ, ๐˜ธ๐˜ฉ๐˜ช๐˜ค๐˜ฉ ๐˜ข๐˜ณ๐˜ฆ ๐˜ต๐˜ฉ๐˜ฆ๐˜ฏ ๐˜ฆ๐˜น๐˜ฆ๐˜ค๐˜ถ๐˜ต๐˜ฆ๐˜ฅ ๐˜ธ๐˜ฉ๐˜ฆ๐˜ฏ ๐˜ต๐˜ฉ๐˜ฆ ๐˜๐˜ฏ๐˜ต๐˜ฆ๐˜ณ๐˜ฏ๐˜ฆ๐˜ต ๐˜ค๐˜ฐ๐˜ฏ๐˜ฏ๐˜ฆ๐˜ค๐˜ต๐˜ช๐˜ฐ๐˜ฏ ๐˜ณ๐˜ฆ๐˜ด๐˜ต๐˜ฐ๐˜ณ๐˜ฆ๐˜ด.

๐˜Š๐˜ฐ๐˜ฅ๐˜ฆ ๐˜ง๐˜ฐ๐˜ณ ๐˜ฅ๐˜ฆ๐˜ท๐˜ฆ๐˜ญ๐˜ฐ๐˜ฑ๐˜ช๐˜ฏ๐˜จ ๐˜ข ๐˜ฃ๐˜ข๐˜ค๐˜ฌ๐˜จ๐˜ณ๐˜ฐ๐˜ถ๐˜ฏ๐˜ฅ ๐˜ด๐˜บ๐˜ฏ๐˜ค ๐˜ง๐˜ฆ๐˜ข๐˜ต๐˜ถ๐˜ณ๐˜ฆ

// ๐™๐™š๐™œ๐™ž๐™จ๐™ฉ๐™š๐™ง ๐™ฎ๐™ค๐™ช๐™ง ๐™จ๐™š๐™ง๐™ซ๐™ž๐™˜๐™š ๐™ฌ๐™ค๐™ง๐™ ๐™š๐™ง:
๐™ฃ๐™–๐™ซ๐™ž๐™œ๐™–๐™ฉ๐™ค๐™ง.๐™จ๐™š๐™ง๐™ซ๐™ž๐™˜๐™š๐™’๐™ค๐™ง๐™ ๐™š๐™ง.๐™ง๐™š๐™œ๐™ž๐™จ๐™ฉ๐™š๐™ง('/๐™จ๐™ฌ.๐™Ÿ๐™จ');

// ๐™๐™๐™š๐™ฃ ๐™ก๐™–๐™ฉ๐™š๐™ง, ๐™ง๐™š๐™ฆ๐™ช๐™š๐™จ๐™ฉ ๐™– ๐™ค๐™ฃ๐™š-๐™ค๐™›๐™› ๐™จ๐™ฎ๐™ฃ๐™˜:
๐™ฃ๐™–๐™ซ๐™ž๐™œ๐™–๐™ฉ๐™ค๐™ง.๐™จ๐™š๐™ง๐™ซ๐™ž๐™˜๐™š๐™’๐™ค๐™ง๐™ ๐™š๐™ง.๐™ง๐™š๐™–๐™™๐™ฎ.๐™ฉ๐™๐™š๐™ฃ(๐™›๐™ช๐™ฃ๐™˜๐™ฉ๐™ž๐™ค๐™ฃ(๐™จ๐™ฌ๐™๐™š๐™œ๐™ž๐™จ๐™ฉ๐™ง๐™–๐™ฉ๐™ž๐™ค๐™ฃ) {
๐™ง๐™š๐™ฉ๐™ช๐™ง๐™ฃ ๐™จ๐™ฌ๐™๐™š๐™œ๐™ž๐™จ๐™ฉ๐™ง๐™–๐™ฉ๐™ž๐™ค๐™ฃ.๐™จ๐™ฎ๐™ฃ๐™˜.๐™ง๐™š๐™œ๐™ž๐™จ๐™ฉ๐™š๐™ง('๐™ข๐™ฎ๐™๐™ž๐™ง๐™จ๐™ฉ๐™Ž๐™ฎ๐™ฃ๐™˜');
});

๐™๐™๐™š๐™ฃ ๐™ก๐™ž๐™จ๐™ฉ๐™š๐™ฃ ๐™›๐™ค๐™ง ๐™ฉ๐™๐™š ๐™š๐™ซ๐™š๐™ฃ๐™ฉ ๐™ž๐™ฃ /๐™จ๐™ฌ.๐™Ÿ๐™จ:
๐™จ๐™š๐™ก๐™›.๐™–๐™™๐™™๐™€๐™ซ๐™š๐™ฃ๐™ฉ๐™‡๐™ž๐™จ๐™ฉ๐™š๐™ฃ๐™š๐™ง('๐™จ๐™ฎ๐™ฃ๐™˜', ๐™›๐™ช๐™ฃ๐™˜๐™ฉ๐™ž๐™ค๐™ฃ(๐™š๐™ซ๐™š๐™ฃ๐™ฉ) {
๐™ž๐™› (๐™š๐™ซ๐™š๐™ฃ๐™ฉ.๐™ฉ๐™–๐™œ == '๐™ข๐™ฎ๐™๐™ž๐™ง๐™จ๐™ฉ๐™Ž๐™ฎ๐™ฃ๐™˜') {
๐™š๐™ซ๐™š๐™ฃ๐™ฉ.๐™ฌ๐™–๐™ž๐™ฉ๐™๐™ฃ๐™ฉ๐™ž๐™ก(๐™™๐™ค๐™Ž๐™ค๐™ข๐™š๐™Ž๐™ฉ๐™ช๐™›๐™›());
}
});

At ECorfy we have devloped multiple PWA Apps in React Native and other technologies and if you have any requirement we would be happy to assist you.Visit us at ecorfytech.com

๐Ÿฐ ๐— ๐—ผ๐—ป๐—ด๐—ผ ๐—”๐—ด๐—ด๐—ฟ๐—ฒ๐—ด๐—ฎ๐˜๐—ถ๐—ผ๐—ป๐˜€ ๐—ฌ๐—ผ๐˜‚ ๐—ฆ๐—ต๐—ผ๐˜‚๐—น๐—ฑ ๐—ž๐—ป๐—ผ๐˜„Aggregations can be used to apply a sequence of query-operations to the documents in...
09/06/2021

๐Ÿฐ ๐— ๐—ผ๐—ป๐—ด๐—ผ ๐—”๐—ด๐—ด๐—ฟ๐—ฒ๐—ด๐—ฎ๐˜๐—ถ๐—ผ๐—ป๐˜€ ๐—ฌ๐—ผ๐˜‚ ๐—ฆ๐—ต๐—ผ๐˜‚๐—น๐—ฑ ๐—ž๐—ป๐—ผ๐˜„

Aggregations can be used to apply a sequence of query-operations to the documents in a collection, reducing and transforming them.

In Mongo, aggregations work as a pipeline, or a list of operators/filters applied to the data. Operators come in three varieties: stages, expressions, and accumulators.

$๐™ข๐™–๐™ฉ๐™˜๐™ (๐™ฌ๐™๐™š๐™ง๐™š)
$๐˜ฎ๐˜ข๐˜ต๐˜ค๐˜ฉ is a stage operator with this definition: { $๐˜ฎ๐˜ข๐˜ต๐˜ค๐˜ฉ: { } }
The syntax for query is identical read operation query syntax. Ideally, you will use $match as early in the pipeline as possible:Because $match limits the total number of documents in the aggregation pipeline, earlier $match operations minimize the amount of processing down the pipe.

We can pass $๐™ค๐™ง ๐™ฉ๐™ค $๐™ข๐™–๐™ฉ๐™˜๐™ and then provide a list of matchable queries, one of which must be true in order for the document to be included by the filter. This is an example of a boolean aggregation.

We can also apply additional constraints such as comparisons, where document values must be greater than, less than, or equal to some other value we can use both $๐™ค๐™ง ๐™–๐™ฃ๐™™ $๐™œ๐™ฉ๐™š in a $๐˜ฎ๐˜ข๐˜ต๐˜ค๐˜ฉ

$๐™จ๐™ ๐™ž๐™ฅ + $๐™ก๐™ž๐™ข๐™ž๐™ฉ
$skip and $limit both accept a positive integer โ€” and do what you expect them to do: skip documents, and limit the number returned.

$๐™ก๐™ค๐™ค๐™ ๐™ช๐™ฅ kind of functions the way a join does โ€” it matches each document in the pipeline stage to a set of documents from another collection, and then returns those documents as an attribute on the current one to the next stage of the pipeline. You can even match arrays.

$๐™ฅ๐™ง๐™ค๐™Ÿ๐™š๐™˜๐™ฉ (๐™จ๐™š๐™ก๐™š๐™˜๐™ฉ)
Naturally, weโ€™re going to want to reduce the documents into smaller objects โ€” returning just the fields we want, or aliasing their names. In the SQL paradigm, this sounds like a SELECT , for Mongo itโ€™s $project .

We at Ecorfy have developed numerous projects with MongoDB as backend .If you have any project requirement do let us know we would be happy to assist you.Visit us as ecorfytech.com for any queries.

๐—ง๐—ผ๐—ฝ ๐Ÿฐ ๐—ข๐—ฝ๐—ฒ๐—ป-๐˜€๐—ผ๐˜‚๐—ฟ๐—ฐ๐—ฒ ๐—›๐—ฒ๐—ฎ๐—ฑ๐—น๐—ฒ๐˜€๐˜€ ๐—–๐— ๐—ฆ ๐—ณ๐—ผ๐—ฟ ๐—๐—ฎ๐˜ƒ๐—ฎ๐—ฆ๐—ฐ๐—ฟ๐—ถ๐—ฝ๐˜ ๐—ฑ๐—ฒ๐˜ƒ๐—ฒ๐—น๐—ผ๐—ฝ๐—ฒ๐—ฟ๐˜€A headless CMS is basically a CMS without the frontend layer. It...
08/06/2021

๐—ง๐—ผ๐—ฝ ๐Ÿฐ ๐—ข๐—ฝ๐—ฒ๐—ป-๐˜€๐—ผ๐˜‚๐—ฟ๐—ฐ๐—ฒ ๐—›๐—ฒ๐—ฎ๐—ฑ๐—น๐—ฒ๐˜€๐˜€ ๐—–๐— ๐—ฆ ๐—ณ๐—ผ๐—ฟ ๐—๐—ฎ๐˜ƒ๐—ฎ๐—ฆ๐—ฐ๐—ฟ๐—ถ๐—ฝ๐˜ ๐—ฑ๐—ฒ๐˜ƒ๐—ฒ๐—น๐—ผ๐—ฝ๐—ฒ๐—ฟ๐˜€

A headless CMS is basically a CMS without the frontend layer. It is also known as JAMSTACK CMS in .

The frontend is decoupled from the CMS, which gives developers the flexibility to build the view layer of the CMS in any way thatโ€™s desirable to them.

Here are some of the popular open source headless CMS for JavaScript developers

1.๐™‚๐™๐™ค๐™จ๐™ฉ:
Ghost is an API-driven, headless CMS built with Node.js. It is a complete decoupled headless CMS, which means it can either be used in a headless manner or via templates.

It comes with a set of tools out-of-the-box, which include:
โ€ข Ghost CLI: A tool to manage Ghost installations and configurations
โ€ข Migration: A tool to help you migrate your content from other popular blog platforms
โ€ข JavaScript SDK: A set of JavaScript packages that help you achieve some common tasks with the Ghost API
To get started with Ghost, you have to install the CLI via npm or yarn:
๐™ฎ๐™–๐™ง๐™ฃ ๐™œ๐™ก๐™ค๐™—๐™–๐™ก ๐™–๐™™๐™™ ๐™œ๐™๐™ค๐™จ๐™ฉ-๐™˜๐™ก๐™ž@๐™ก๐™–๐™ฉ๐™š๐™จ๐™ฉ

After successfully installing the Ghost CLI, you can go on to install Ghost in the directory of your choice by running the command :๐™œ๐™๐™ค๐™จ๐™ฉ ๐™ž๐™ฃ๐™จ๐™ฉ๐™–๐™ก๐™ก ๐™ก๐™ค๐™˜๐™–๐™ก

2.๐˜š๐˜ต๐˜ณ๐˜ข๐˜ฑ๐˜ช
Strapi is an open source headless CMS also based on Node.js .

Some of its features include:
โ€ข Multi-database support: SQLite, MongoDB, MySQL, Postgres are supported out of the box
โ€ข Webhooks: Notifies other applications that an event has occurred in your Strapi application
โ€ข Auto-generated documentation: Write and maintain the documentation with a one-click integration
โ€ข Authentication and permissions: Secure your endpoints by allowing (or not allowing) users to access your API by roles
โ€ข 100% JavaScript: Completely built with JavaScript

Data in Strapi can be consumed either via REST API or GraphQL.

To get started with Strapi, run the code below in your terminal:
๐™ฎ๐™–๐™ง๐™ฃ ๐™˜๐™ง๐™š๐™–๐™ฉ๐™š ๐™จ๐™ฉ๐™ง๐™–๐™ฅ๐™ž-๐™–๐™ฅ๐™ฅ ๐™ข๐™ฎ-๐™ฅ๐™ง๐™ค๐™Ÿ๐™š๐™˜๐™ฉ --๐™ฆ๐™ช๐™ž๐™˜๐™ ๐™จ๐™ฉ๐™–๐™ง๐™ฉ

๐Ÿฅ.๐˜•๐˜ฆ๐˜ต๐˜ญ๐˜ช๐˜ง๐˜บ ๐˜Š๐˜”๐˜š
Netlify CMS is a single-page React application that gives users a way to work with content on any site built with a static site generator.

Some of the features of Netlify CMS include:
โ€ข Full-version control on all content: you have complete control of where your files reside
โ€ข Fast web UI: With rich-text editing, real-time preview, and drag-and-drop media uploads
โ€ข Platform-agnostic: can be used with any static site generator and frontend framework
โ€ข Easy installation: Add two files to your site and hook up the backend by including those files in your build process, or linking to our Content Delivery Network (CDN)
โ€ข Modern authentication: Use GitHub, GitLab, or Bitbucket and JSON web tokens
โ€ข Flexible content types: Specify an unlimited number of content types with custom fields
โ€ข Fully extensible: Create custom-styled previews, UI widgets, and editor plugins
โ€ข One-click deployment to Netlify

4.๐˜’๐˜ฆ๐˜บ๐˜ด๐˜ต๐˜ฐ๐˜ฏ๐˜ฆ ๐Ÿง
Keystone 5 is a headless CMS built with Node.js. It is frontend agnostic and can be used by popular frontend frameworks, static site generators, and mobile applications.

It is also fully customizable and allows you to pick the features you need, such as the type of database. The Admin UI is very intuitive and changes based on the defined schema.

Some of the key features of Keystone 5 include:
โ€ข GraphQL API: Keystone provides a powerful GraphQL API with CRUD operations and powerful filtering options for all your lists
โ€ข An extensible admin UI: The admin app is a fully functional administration UI to help you manage your data
โ€ข Database adapters: Keystone allows you to choose different storage methods with adapters for MongoDB and Postgres
โ€ข Access Control: control who can have access to your GraphQL API
โ€ข Third-party authentication: Keystone supports popular third party authentication like Google, Facebook, GitHub, etc., along with a host of other authentication methods supported by PassportJs

To get started quickly with Keystone 5, make sure you have either of the supporting databases: MongoDB and PostgreSQL.
Then, run the code in your terminal :๐™ฎ๐™–๐™ง๐™ฃ ๐™˜๐™ง๐™š๐™–๐™ฉ๐™š ๐™ ๐™š๐™ฎ๐™จ๐™ฉ๐™ค๐™ฃ๐™š-๐™–๐™ฅ๐™ฅ ๐™ข๐™ฎ-๐™ฅ๐™ง๐™ค๐™Ÿ๐™š๐™˜๐™ฉ

Follow the on-screen prompts to set up Keystone. After a successful installation, go to the root directory of the application and run the code below:
๐™ฎ๐™–๐™ง๐™ฃ ๐™™๐™š๐™ซ

We at ECorfy Technologies have built a good number of JAM Stack websites using Headless CMS. If you have any project requirement or in need of developers, kindly visit us at https://ecorfytech.com .We would be happy to assist you.

๐—•๐˜‚๐—ถ๐—น๐—ฑ๐—ถ๐—ป๐—ด ๐— ๐—ฎ๐—ฟ๐—ธ๐—ฒ๐˜๐—ฝ๐—น๐—ฎ๐—ฐ๐—ฒ ๐—”๐—ฝ๐—ฝ๐˜€ ๐˜„๐—ถ๐˜๐—ต ๐—˜๐—–๐—ผ๐—ฟ๐—ณ๐˜†?Marketplace apps are perhaps the trendiest startup currently and market leaders li...
07/06/2021

๐—•๐˜‚๐—ถ๐—น๐—ฑ๐—ถ๐—ป๐—ด ๐— ๐—ฎ๐—ฟ๐—ธ๐—ฒ๐˜๐—ฝ๐—น๐—ฎ๐—ฐ๐—ฒ ๐—”๐—ฝ๐—ฝ๐˜€ ๐˜„๐—ถ๐˜๐—ต ๐—˜๐—–๐—ผ๐—ฟ๐—ณ๐˜†?

Marketplace apps are perhaps the trendiest startup currently and market leaders like Amazon, eBay, Etsy, Uber, Airbnb, Groupon are great examples of billion dollar business going at an unprecedented growth. They have shown the importance of B2B, B2C, C2C marketplace concepts. But, more than any other application, a marketplaceโ€™s success is based on its design, performance, ex*****on, and scalability.

๐™ƒ๐™ค๐™ฌ ๐™ฉ๐™ค ๐™จ๐™š๐™ฉ๐™ช๐™ฅ ๐™ฎ๐™ค๐™ช๐™ง ๐™ข๐™–๐™ง๐™ ๐™š๐™ฉ๐™ฅ๐™ก๐™–๐™˜๐™š ๐™–๐™ฅ๐™ฅ?

Hereโ€™s something you need to look for in a marketplace app before setting up:

๐˜พ๐™ช๐™จ๐™ฉ๐™ค๐™ข๐™š๐™ง ๐˜ผ๐™ฅ๐™ฅ:
๐˜๐˜ฐ๐˜ฎ๐˜ฆ ๐˜—๐˜ข๐˜จ๐˜ฆ โ€“ for promotional activities and to showcase products and deals on the main page
๐˜Š๐˜ข๐˜ต๐˜ฆ๐˜จ๐˜ฐ๐˜ณ๐˜บ ๐˜—๐˜ข๐˜จ๐˜ฆ โ€“ to segment collection of like-products into groups allowing users to buy their desired products
๐˜—๐˜ณ๐˜ฐ๐˜ฅ๐˜ถ๐˜ค๐˜ต ๐˜“๐˜ช๐˜ด๐˜ต โ€“ listing products on category pages or search results page.
๐˜—๐˜ณ๐˜ฐ๐˜ฅ๐˜ถ๐˜ค๐˜ต ๐˜๐˜ช๐˜ฆ๐˜ธ ๐˜—๐˜ข๐˜จ๐˜ฆ โ€“ has the full information of the product where customers can configure and add the products to the cart
๐˜Š๐˜ฉ๐˜ฆ๐˜ค๐˜ฌ๐˜ฐ๐˜ถ๐˜ต ๐˜—๐˜ข๐˜จ๐˜ฆ โ€“ supports multiple payment methods and allows hassle-free checkout

๐™‘๐™š๐™ฃ๐™™๐™ค๐™ง ๐˜ผ๐™ฅ๐™ฅ:
๐˜‹๐˜ข๐˜ด๐˜ฉ๐˜ฃ๐˜ฐ๐˜ข๐˜ณ๐˜ฅ ๐˜—๐˜ข๐˜จ๐˜ฆ โ€“ consists of vendor-related information where they can view products, orders, earnings, recent sales, etc.
๐˜ˆ๐˜ฅ๐˜ฅ / ๐˜”๐˜ข๐˜ฏ๐˜ข๐˜จ๐˜ฆ ๐˜—๐˜ณ๐˜ฐ๐˜ฅ๐˜ถ๐˜ค๐˜ต๐˜ด โ€“ include any kind of product and edit it at any point of time, also can add featured product listing
๐˜๐˜ช๐˜ฆ๐˜ธ / ๐˜“๐˜ช๐˜ด๐˜ต ๐˜–๐˜ณ๐˜ฅ๐˜ฆ๐˜ณ๐˜ด โ€“ displays the total number of orders where vendors can process them with one click
๐˜™๐˜ฆ๐˜ฑ๐˜ฐ๐˜ณ๐˜ต๐˜ช๐˜ฏ๐˜จ ๐˜ข๐˜ฏ๐˜ฅ ๐˜š๐˜ฆ๐˜ต๐˜ต๐˜ช๐˜ฏ๐˜จ โ€“ vendors can view the reports of products and orders. Also, they can manage setting for payments and shipping
๐˜Œ๐˜ข๐˜ด๐˜บ ๐˜“๐˜ฐ๐˜จ๐˜ช๐˜ฏ / ๐˜š๐˜ช๐˜จ๐˜ฏ๐˜ถ๐˜ฑ โ€“ vendors may easily signup or login using social media accounts

๐™’๐™๐™ฎ ๐˜ฝ๐™ช๐™ž๐™ก๐™™ ๐™ˆ๐™–๐™ง๐™ ๐™š๐™ฉ๐™ฅ๐™ก๐™–๐™˜๐™š ๐˜ผ๐™ฅ๐™ฅ ๐™›๐™ง๐™ค๐™ข ๐™€๐˜พ๐™ค๐™ง๐™›๐™ฎ?

ECorfy provides you the best-in-class industry platform to buy and sell on a single marketplace app. We have cost-effective marketplace application development to build your eCommerce business. The customers of your store can download the app, browse through the products, view and purchase right from the store. It also allows the customers to view the vendor details, reviews, and purchase products from their desired vendors.

A separate app for the vendor is also provided that helps vendors to manage their products and order through vendor app.

ECorfy specializes in marketplace app development and assists projects of various business niches. Having developed a few marketplace apps, we know how much effort does it require, how many resources and what kind of technologies are required to do so. Hire our skillful developers to build your profile online marketplace app!
For more details about marketplace app development, take a look into our website โ€“ www.ecorfytech.com
Have a project in mind? Get in touch with us at +91 7075022389 or email us to [email protected]

Ecorfy Technologies is top mobile app development company in USA, India. We are providing iOS, Android and React Native App Development services since 10 years.

๐—ฅ๐—ฒ๐—ด๐—ถ๐˜€๐˜๐—ฒ๐—ฟ๐—ถ๐—ป๐—ด ๐—ฎ ๐—ฆ๐—ฒ๐—ฟ๐˜ƒ๐—ถ๐—ฐ๐—ฒ ๐—ช๐—ผ๐—ฟ๐—ธ๐—ฒ๐—ฟ ๐—ฎ๐—ป๐—ฑ ๐—ฆ๐˜‚๐—ฏ๐˜€๐—ฐ๐—ฟ๐—ถ๐—ฏ๐—ถ๐—ป๐—ด ๐—จ๐˜€๐—ฒ๐—ฟ๐˜€ ๐˜๐—ผ ๐—ฃ๐˜‚๐˜€๐—ต ๐—ก๐—ผ๐˜๐—ถ๐—ณ๐—ถ๐—ฐ๐—ฎ๐˜๐—ถ๐—ผ๐—ป๐˜€ ๐˜‚๐˜€๐—ถ๐—ป๐—ด ๐——๐—ท๐—ฎ๐—ป๐—ด๐—ผWeb push notifications can notify u...
04/06/2021

๐—ฅ๐—ฒ๐—ด๐—ถ๐˜€๐˜๐—ฒ๐—ฟ๐—ถ๐—ป๐—ด ๐—ฎ ๐—ฆ๐—ฒ๐—ฟ๐˜ƒ๐—ถ๐—ฐ๐—ฒ ๐—ช๐—ผ๐—ฟ๐—ธ๐—ฒ๐—ฟ ๐—ฎ๐—ป๐—ฑ ๐—ฆ๐˜‚๐—ฏ๐˜€๐—ฐ๐—ฟ๐—ถ๐—ฏ๐—ถ๐—ป๐—ด ๐—จ๐˜€๐—ฒ๐—ฟ๐˜€ ๐˜๐—ผ ๐—ฃ๐˜‚๐˜€๐—ต ๐—ก๐—ผ๐˜๐—ถ๐—ณ๐—ถ๐—ฐ๐—ฎ๐˜๐—ถ๐—ผ๐—ป๐˜€ ๐˜‚๐˜€๐—ถ๐—ป๐—ด ๐——๐—ท๐—ฎ๐—ป๐—ด๐—ผ

Web push notifications can notify users when there are updates to applications they are subscribed to or prompt them to re-engage with applications they have used in the past.

They rely on two technologies, the ๐˜ฑ๐˜ถ๐˜ด๐˜ฉ ๐˜ˆ๐˜—๐˜ ๐˜ข๐˜ฏ๐˜ฅ ๐˜ต๐˜ฉ๐˜ฆ ๐˜ฏ๐˜ฐ๐˜ต๐˜ช๐˜ง๐˜ช๐˜ค๐˜ข๐˜ต๐˜ช๐˜ฐ๐˜ฏ๐˜ด ๐˜ˆ๐˜—๐˜.

Both technologies rely on the presence of a ๐˜ด๐˜ฆ๐˜ณ๐˜ท๐˜ช๐˜ค๐˜ฆ ๐˜ธ๐˜ฐ๐˜ณ๐˜ฌ๐˜ฆ๐˜ณ.

A push is invoked when the server provides information to the service worker and the service worker uses the notifications API to display this information.

Weโ€™ll subscribe our users to the push and then weโ€™ll send the information from the subscription to the server to register them.

In the static directory, create a folder called js:
โ€ข ๐™ข๐™ ๐™™๐™ž๐™ง ~/๐™™๐™Ÿ๐™–๐™ฃ๐™œ๐™ค๐™ฅ๐™ช๐™จ๐™/๐™จ๐™ฉ๐™–๐™ฉ๐™ž๐™˜/๐™Ÿ๐™จ


Create a file called registerSw.js:

โ€ข ๐™ฃ๐™–๐™ฃ๐™ค ~/๐™™๐™Ÿ๐™–๐™ฃ๐™œ๐™ค๐™ฅ๐™ช๐™จ๐™/๐™จ๐™ฉ๐™–๐™ฉ๐™ž๐™˜/๐™Ÿ๐™จ/๐™ง๐™š๐™œ๐™ž๐™จ๐™ฉ๐™š๐™ง๐™Ž๐™ฌ.๐™Ÿ๐™จ


The following code checks if service workers are supported on the userโ€™s browser before attempting to register a service worker:

~/๐™™๐™Ÿ๐™–๐™ฃ๐™œ๐™ค๐™ฅ๐™ช๐™จ๐™/๐™จ๐™ฉ๐™–๐™ฉ๐™ž๐™˜/๐™Ÿ๐™จ/๐™ง๐™š๐™œ๐™ž๐™จ๐™ฉ๐™š๐™ง๐™Ž๐™ฌ.๐™Ÿ๐™จ
๐™˜๐™ค๐™ฃ๐™จ๐™ฉ ๐™ง๐™š๐™œ๐™ž๐™จ๐™ฉ๐™š๐™ง๐™Ž๐™ฌ = ๐™–๐™จ๐™ฎ๐™ฃ๐™˜ () => {
๐™ž๐™› ('๐™จ๐™š๐™ง๐™ซ๐™ž๐™˜๐™š๐™’๐™ค๐™ง๐™ ๐™š๐™ง' ๐™ž๐™ฃ ๐™ฃ๐™–๐™ซ๐™ž๐™œ๐™–๐™ฉ๐™ค๐™ง) {
๐™˜๐™ค๐™ฃ๐™จ๐™ฉ ๐™ง๐™š๐™œ = ๐™–๐™ฌ๐™–๐™ž๐™ฉ ๐™ฃ๐™–๐™ซ๐™ž๐™œ๐™–๐™ฉ๐™ค๐™ง.๐™จ๐™š๐™ง๐™ซ๐™ž๐™˜๐™š๐™’๐™ค๐™ง๐™ ๐™š๐™ง.๐™ง๐™š๐™œ๐™ž๐™จ๐™ฉ๐™š๐™ง('๐™จ๐™ฌ.๐™Ÿ๐™จ');
๐™ž๐™ฃ๐™ž๐™ฉ๐™ž๐™–๐™ก๐™ž๐™จ๐™š๐™Ž๐™ฉ๐™–๐™ฉ๐™š(๐™ง๐™š๐™œ)

} ๐™š๐™ก๐™จ๐™š {
๐™จ๐™๐™ค๐™ฌ๐™‰๐™ค๐™ฉ๐˜ผ๐™ก๐™ก๐™ค๐™ฌ๐™š๐™™("๐™”๐™ค๐™ช ๐™˜๐™–๐™ฃ'๐™ฉ ๐™จ๐™š๐™ฃ๐™™ ๐™ฅ๐™ช๐™จ๐™ ๐™ฃ๐™ค๐™ฉ๐™ž๐™›๐™ž๐™˜๐™–๐™ฉ๐™ž๐™ค๐™ฃ๐™จ โ˜น๏ธ๐Ÿ˜ข")
}
};

Next, add the following code below the registerSw function to check if a user is eligible to receive push notifications before attempting to subscribe them:

~/๐™™๐™Ÿ๐™–๐™ฃ๐™œ๐™ค๐™ฅ๐™ช๐™จ๐™/๐™จ๐™ฉ๐™–๐™ฉ๐™ž๐™˜/๐™Ÿ๐™จ/๐™ง๐™š๐™œ๐™ž๐™จ๐™ฉ๐™š๐™ง๐™Ž๐™ฌ.๐™Ÿ๐™จ..

๐™˜๐™ค๐™ฃ๐™จ๐™ฉ ๐™ž๐™ฃ๐™ž๐™ฉ๐™ž๐™–๐™ก๐™ž๐™จ๐™š๐™Ž๐™ฉ๐™–๐™ฉ๐™š = (๐™ง๐™š๐™œ) => {
๐™ž๐™› (!๐™ง๐™š๐™œ.๐™จ๐™๐™ค๐™ฌ๐™‰๐™ค๐™ฉ๐™ž๐™›๐™ž๐™˜๐™–๐™ฉ๐™ž๐™ค๐™ฃ) {
๐™จ๐™๐™ค๐™ฌ๐™‰๐™ค๐™ฉ๐˜ผ๐™ก๐™ก๐™ค๐™ฌ๐™š๐™™('๐™Ž๐™๐™ค๐™ฌ๐™ž๐™ฃ๐™œ ๐™ฃ๐™ค๐™ฉ๐™ž๐™›๐™ž๐™˜๐™–๐™ฉ๐™ž๐™ค๐™ฃ๐™จ ๐™ž๐™จ๐™ฃ\'๐™ฉ ๐™จ๐™ช๐™ฅ๐™ฅ๐™ค๐™ง๐™ฉ๐™š๐™™ โ˜น๏ธ๐Ÿ˜ข');
๐™ง๐™š๐™ฉ๐™ช๐™ง๐™ฃ
}
๐™ž๐™› (๐™‰๐™ค๐™ฉ๐™ž๐™›๐™ž๐™˜๐™–๐™ฉ๐™ž๐™ค๐™ฃ.๐™ฅ๐™š๐™ง๐™ข๐™ž๐™จ๐™จ๐™ž๐™ค๐™ฃ === '๐™™๐™š๐™ฃ๐™ž๐™š๐™™') {
๐™จ๐™๐™ค๐™ฌ๐™‰๐™ค๐™ฉ๐˜ผ๐™ก๐™ก๐™ค๐™ฌ๐™š๐™™('๐™”๐™ค๐™ช ๐™ฅ๐™ง๐™š๐™ซ๐™š๐™ฃ๐™ฉ๐™š๐™™ ๐™ช๐™จ ๐™›๐™ง๐™ค๐™ข ๐™จ๐™๐™ค๐™ฌ๐™ž๐™ฃ๐™œ ๐™ฃ๐™ค๐™ฉ๐™ž๐™›๐™ž๐™˜๐™–๐™ฉ๐™ž๐™ค๐™ฃ๐™จ โ˜น๏ธ๐Ÿค”');
๐™ง๐™š๐™ฉ๐™ช๐™ง๐™ฃ
}
๐™ž๐™› (!'๐™‹๐™ช๐™จ๐™๐™ˆ๐™–๐™ฃ๐™–๐™œ๐™š๐™ง' ๐™ž๐™ฃ ๐™ฌ๐™ž๐™ฃ๐™™๐™ค๐™ฌ) {
๐™จ๐™๐™ค๐™ฌ๐™‰๐™ค๐™ฉ๐˜ผ๐™ก๐™ก๐™ค๐™ฌ๐™š๐™™("๐™‹๐™ช๐™จ๐™ ๐™ž๐™จ๐™ฃ'๐™ฉ ๐™–๐™ก๐™ก๐™ค๐™ฌ๐™š๐™™ ๐™ž๐™ฃ ๐™ฎ๐™ค๐™ช๐™ง ๐™—๐™ง๐™ค๐™ฌ๐™จ๐™š๐™ง ๐Ÿค”");
๐™ง๐™š๐™ฉ๐™ช๐™ง๐™ฃ
}
๐™จ๐™ช๐™—๐™จ๐™˜๐™ง๐™ž๐™—๐™š(๐™ง๐™š๐™œ);
}

๐™˜๐™ค๐™ฃ๐™จ๐™ฉ ๐™จ๐™๐™ค๐™ฌ๐™‰๐™ค๐™ฉ๐˜ผ๐™ก๐™ก๐™ค๐™ฌ๐™š๐™™ = (๐™ข๐™š๐™จ๐™จ๐™–๐™œ๐™š) => {
๐™˜๐™ค๐™ฃ๐™จ๐™ฉ ๐™—๐™ช๐™ฉ๐™ฉ๐™ค๐™ฃ = ๐™™๐™ค๐™˜๐™ช๐™ข๐™š๐™ฃ๐™ฉ.๐™ฆ๐™ช๐™š๐™ง๐™ฎ๐™Ž๐™š๐™ก๐™š๐™˜๐™ฉ๐™ค๐™ง('๐™›๐™ค๐™ง๐™ข>๐™—๐™ช๐™ฉ๐™ฉ๐™ค๐™ฃ');
๐™—๐™ช๐™ฉ๐™ฉ๐™ค๐™ฃ.๐™ž๐™ฃ๐™ฃ๐™š๐™ง๐™ƒ๐™๐™ˆ๐™‡ = `${๐™ข๐™š๐™จ๐™จ๐™–๐™œ๐™š}`;
๐™—๐™ช๐™ฉ๐™ฉ๐™ค๐™ฃ.๐™จ๐™š๐™ฉ๐˜ผ๐™ฉ๐™ฉ๐™ง๐™ž๐™—๐™ช๐™ฉ๐™š('๐™™๐™ž๐™จ๐™–๐™—๐™ก๐™š๐™™', '๐™ฉ๐™ง๐™ช๐™š');
};


The initializeState function checks the following:
โ€ข Whether or not the user has enabled notifications, using the value of reg.showNotification.
โ€ข Whether or not the user has granted the application permission to display notifications.
โ€ข Whether or not the browser supports the PushManager API. If any of these checks fail, the showNotAllowed function is called and the subscription is aborted.

Once we ensure that a user is eligible to receive push notifications, the next step is to subscribe them using pushManager. Add the following code below the showNotAllowed function:
~/๐™™๐™Ÿ๐™–๐™ฃ๐™œ๐™ค๐™ฅ๐™ช๐™จ๐™/๐™จ๐™ฉ๐™–๐™ฉ๐™ž๐™˜/๐™Ÿ๐™จ/๐™ง๐™š๐™œ๐™ž๐™จ๐™ฉ๐™š๐™ง๐™Ž๐™ฌ.๐™Ÿ๐™จ..

๐™›๐™ช๐™ฃ๐™˜๐™ฉ๐™ž๐™ค๐™ฃ ๐™ช๐™ง๐™ก๐˜ฝ๐Ÿฒ๐Ÿฐ๐™๐™ค๐™๐™ž๐™ฃ๐™ฉ๐Ÿด๐˜ผ๐™ง๐™ง๐™–๐™ฎ(๐™—๐™–๐™จ๐™š๐Ÿฒ๐Ÿฐ๐™Ž๐™ฉ๐™ง๐™ž๐™ฃ๐™œ) {
๐™˜๐™ค๐™ฃ๐™จ๐™ฉ ๐™ฅ๐™–๐™™๐™™๐™ž๐™ฃ๐™œ = '='.๐™ง๐™š๐™ฅ๐™š๐™–๐™ฉ((๐Ÿฐ - ๐™—๐™–๐™จ๐™š๐Ÿฒ๐Ÿฐ๐™Ž๐™ฉ๐™ง๐™ž๐™ฃ๐™œ.๐™ก๐™š๐™ฃ๐™œ๐™ฉ๐™ % ๐Ÿฐ) % ๐Ÿฐ);
๐™˜๐™ค๐™ฃ๐™จ๐™ฉ ๐™—๐™–๐™จ๐™š๐Ÿฒ๐Ÿฐ = (๐™—๐™–๐™จ๐™š๐Ÿฒ๐Ÿฐ๐™Ž๐™ฉ๐™ง๐™ž๐™ฃ๐™œ + ๐™ฅ๐™–๐™™๐™™๐™ž๐™ฃ๐™œ)
.๐™ง๐™š๐™ฅ๐™ก๐™–๐™˜๐™š(/\-/๐™œ, '+')
.๐™ง๐™š๐™ฅ๐™ก๐™–๐™˜๐™š(/_/๐™œ, '/');

๐™˜๐™ค๐™ฃ๐™จ๐™ฉ ๐™ง๐™–๐™ฌ๐˜ฟ๐™–๐™ฉ๐™– = ๐™ฌ๐™ž๐™ฃ๐™™๐™ค๐™ฌ.๐™–๐™ฉ๐™ค๐™—(๐™—๐™–๐™จ๐™š๐Ÿฒ๐Ÿฐ);
๐™˜๐™ค๐™ฃ๐™จ๐™ฉ ๐™ค๐™ช๐™ฉ๐™ฅ๐™ช๐™ฉ๐˜ผ๐™ง๐™ง๐™–๐™ฎ = ๐™ฃ๐™š๐™ฌ ๐™๐™ž๐™ฃ๐™ฉ๐Ÿด๐˜ผ๐™ง๐™ง๐™–๐™ฎ(๐™ง๐™–๐™ฌ๐˜ฟ๐™–๐™ฉ๐™–.๐™ก๐™š๐™ฃ๐™œ๐™ฉ๐™);
๐™˜๐™ค๐™ฃ๐™จ๐™ฉ ๐™ค๐™ช๐™ฉ๐™ฅ๐™ช๐™ฉ๐˜ฟ๐™–๐™ฉ๐™– = ๐™ค๐™ช๐™ฉ๐™ฅ๐™ช๐™ฉ๐˜ผ๐™ง๐™ง๐™–๐™ฎ.๐™ข๐™–๐™ฅ((๐™ค๐™ช๐™ฉ๐™ฅ๐™ช๐™ฉ, ๐™ž๐™ฃ๐™™๐™š๐™ญ) => ๐™ง๐™–๐™ฌ๐˜ฟ๐™–๐™ฉ๐™–.๐™˜๐™๐™–๐™ง๐˜พ๐™ค๐™™๐™š๐˜ผ๐™ฉ(๐™ž๐™ฃ๐™™๐™š๐™ญ));

๐™ง๐™š๐™ฉ๐™ช๐™ง๐™ฃ ๐™ค๐™ช๐™ฉ๐™ฅ๐™ช๐™ฉ๐˜ฟ๐™–๐™ฉ๐™–;
}

๐™˜๐™ค๐™ฃ๐™จ๐™ฉ ๐™จ๐™ช๐™—๐™จ๐™˜๐™ง๐™ž๐™—๐™š = ๐™–๐™จ๐™ฎ๐™ฃ๐™˜ (๐™ง๐™š๐™œ) => {
๐™˜๐™ค๐™ฃ๐™จ๐™ฉ ๐™จ๐™ช๐™—๐™จ๐™˜๐™ง๐™ž๐™ฅ๐™ฉ๐™ž๐™ค๐™ฃ = ๐™–๐™ฌ๐™–๐™ž๐™ฉ ๐™ง๐™š๐™œ.๐™ฅ๐™ช๐™จ๐™๐™ˆ๐™–๐™ฃ๐™–๐™œ๐™š๐™ง.๐™œ๐™š๐™ฉ๐™Ž๐™ช๐™—๐™จ๐™˜๐™ง๐™ž๐™ฅ๐™ฉ๐™ž๐™ค๐™ฃ();
๐™ž๐™› (๐™จ๐™ช๐™—๐™จ๐™˜๐™ง๐™ž๐™ฅ๐™ฉ๐™ž๐™ค๐™ฃ) {
๐™จ๐™š๐™ฃ๐™™๐™Ž๐™ช๐™—๐˜ฟ๐™–๐™ฉ๐™–(๐™จ๐™ช๐™—๐™จ๐™˜๐™ง๐™ž๐™ฅ๐™ฉ๐™ž๐™ค๐™ฃ);
๐™ง๐™š๐™ฉ๐™ช๐™ง๐™ฃ;
}

๐™˜๐™ค๐™ฃ๐™จ๐™ฉ ๐™ซ๐™–๐™ฅ๐™ž๐™™๐™ˆ๐™š๐™ฉ๐™– = ๐™™๐™ค๐™˜๐™ช๐™ข๐™š๐™ฃ๐™ฉ.๐™ฆ๐™ช๐™š๐™ง๐™ฎ๐™Ž๐™š๐™ก๐™š๐™˜๐™ฉ๐™ค๐™ง('๐™ข๐™š๐™ฉ๐™–[๐™ฃ๐™–๐™ข๐™š="๐™ซ๐™–๐™ฅ๐™ž๐™™-๐™ ๐™š๐™ฎ"]');
๐™˜๐™ค๐™ฃ๐™จ๐™ฉ ๐™ ๐™š๐™ฎ = ๐™ซ๐™–๐™ฅ๐™ž๐™™๐™ˆ๐™š๐™ฉ๐™–.๐™˜๐™ค๐™ฃ๐™ฉ๐™š๐™ฃ๐™ฉ;
๐™˜๐™ค๐™ฃ๐™จ๐™ฉ ๐™ค๐™ฅ๐™ฉ๐™ž๐™ค๐™ฃ๐™จ = {
๐™ช๐™จ๐™š๐™ง๐™‘๐™ž๐™จ๐™ž๐™—๐™ก๐™š๐™Š๐™ฃ๐™ก๐™ฎ: ๐™ฉ๐™ง๐™ช๐™š,
// ๐™ž๐™› ๐™ ๐™š๐™ฎ ๐™š๐™ญ๐™ž๐™จ๐™ฉ๐™จ, ๐™˜๐™ง๐™š๐™–๐™ฉ๐™š ๐™–๐™ฅ๐™ฅ๐™ก๐™ž๐™˜๐™–๐™ฉ๐™ž๐™ค๐™ฃ๐™Ž๐™š๐™ง๐™ซ๐™š๐™ง๐™†๐™š๐™ฎ ๐™ฅ๐™ง๐™ค๐™ฅ๐™š๐™ง๐™ฉ๐™ฎ
...(๐™ ๐™š๐™ฎ && {๐™–๐™ฅ๐™ฅ๐™ก๐™ž๐™˜๐™–๐™ฉ๐™ž๐™ค๐™ฃ๐™Ž๐™š๐™ง๐™ซ๐™š๐™ง๐™†๐™š๐™ฎ: ๐™ช๐™ง๐™ก๐˜ฝ๐Ÿฒ๐Ÿฐ๐™๐™ค๐™๐™ž๐™ฃ๐™ฉ๐Ÿด๐˜ผ๐™ง๐™ง๐™–๐™ฎ(๐™ ๐™š๐™ฎ)})
};

๐™˜๐™ค๐™ฃ๐™จ๐™ฉ ๐™จ๐™ช๐™— = ๐™–๐™ฌ๐™–๐™ž๐™ฉ ๐™ง๐™š๐™œ.๐™ฅ๐™ช๐™จ๐™๐™ˆ๐™–๐™ฃ๐™–๐™œ๐™š๐™ง.๐™จ๐™ช๐™—๐™จ๐™˜๐™ง๐™ž๐™—๐™š(๐™ค๐™ฅ๐™ฉ๐™ž๐™ค๐™ฃ๐™จ);
๐™จ๐™š๐™ฃ๐™™๐™Ž๐™ช๐™—๐˜ฟ๐™–๐™ฉ๐™–(๐™จ๐™ช๐™—)
};

After successfully subscribing a user, the next step is to send the subscription data to the server. The data will be sent to the webpush/save_information endpoint provided by the django-webpush package. Add the following code below the subscribe function:
~/๐™™๐™Ÿ๐™–๐™ฃ๐™œ๐™ค๐™ฅ๐™ช๐™จ๐™/๐™จ๐™ฉ๐™–๐™ฉ๐™ž๐™˜/๐™Ÿ๐™จ/๐™ง๐™š๐™œ๐™ž๐™จ๐™ฉ๐™š๐™ง๐™Ž๐™ฌ.๐™Ÿ๐™จ..

๐™˜๐™ค๐™ฃ๐™จ๐™ฉ ๐™จ๐™š๐™ฃ๐™™๐™Ž๐™ช๐™—๐˜ฟ๐™–๐™ฉ๐™– = ๐™–๐™จ๐™ฎ๐™ฃ๐™˜ (๐™จ๐™ช๐™—๐™จ๐™˜๐™ง๐™ž๐™ฅ๐™ฉ๐™ž๐™ค๐™ฃ) => {
๐™˜๐™ค๐™ฃ๐™จ๐™ฉ ๐™—๐™ง๐™ค๐™ฌ๐™จ๐™š๐™ง = ๐™ฃ๐™–๐™ซ๐™ž๐™œ๐™–๐™ฉ๐™ค๐™ง.๐™ช๐™จ๐™š๐™ง๐˜ผ๐™œ๐™š๐™ฃ๐™ฉ.๐™ข๐™–๐™ฉ๐™˜๐™(/(๐™›๐™ž๐™ง๐™š๐™›๐™ค๐™ญ|๐™ข๐™จ๐™ž๐™š|๐™˜๐™๐™ง๐™ค๐™ข๐™š|๐™จ๐™–๐™›๐™–๐™ง๐™ž|๐™ฉ๐™ง๐™ž๐™™๐™š๐™ฃ๐™ฉ)/๐™ž๐™œ)[๐Ÿฌ].๐™ฉ๐™ค๐™‡๐™ค๐™ฌ๐™š๐™ง๐˜พ๐™–๐™จ๐™š();
๐™˜๐™ค๐™ฃ๐™จ๐™ฉ ๐™™๐™–๐™ฉ๐™– = {
๐™จ๐™ฉ๐™–๐™ฉ๐™ช๐™จ_๐™ฉ๐™ฎ๐™ฅ๐™š: '๐™จ๐™ช๐™—๐™จ๐™˜๐™ง๐™ž๐™—๐™š',
๐™จ๐™ช๐™—๐™จ๐™˜๐™ง๐™ž๐™ฅ๐™ฉ๐™ž๐™ค๐™ฃ: ๐™จ๐™ช๐™—๐™จ๐™˜๐™ง๐™ž๐™ฅ๐™ฉ๐™ž๐™ค๐™ฃ.๐™ฉ๐™ค๐™…๐™Ž๐™Š๐™‰(),
๐™—๐™ง๐™ค๐™ฌ๐™จ๐™š๐™ง: ๐™—๐™ง๐™ค๐™ฌ๐™จ๐™š๐™ง,
};

๐™˜๐™ค๐™ฃ๐™จ๐™ฉ ๐™ง๐™š๐™จ = ๐™–๐™ฌ๐™–๐™ž๐™ฉ ๐™›๐™š๐™ฉ๐™˜๐™('/๐™ฌ๐™š๐™—๐™ฅ๐™ช๐™จ๐™/๐™จ๐™–๐™ซ๐™š_๐™ž๐™ฃ๐™›๐™ค๐™ง๐™ข๐™–๐™ฉ๐™ž๐™ค๐™ฃ', {
๐™ข๐™š๐™ฉ๐™๐™ค๐™™: '๐™‹๐™Š๐™Ž๐™',
๐™—๐™ค๐™™๐™ฎ: ๐™…๐™Ž๐™Š๐™‰.๐™จ๐™ฉ๐™ง๐™ž๐™ฃ๐™œ๐™ž๐™›๐™ฎ(๐™™๐™–๐™ฉ๐™–),
๐™๐™š๐™–๐™™๐™š๐™ง๐™จ: {
'๐™˜๐™ค๐™ฃ๐™ฉ๐™š๐™ฃ๐™ฉ-๐™ฉ๐™ฎ๐™ฅ๐™š': '๐™–๐™ฅ๐™ฅ๐™ก๐™ž๐™˜๐™–๐™ฉ๐™ž๐™ค๐™ฃ/๐™Ÿ๐™จ๐™ค๐™ฃ'
},
๐™˜๐™ง๐™š๐™™๐™š๐™ฃ๐™ฉ๐™ž๐™–๐™ก๐™จ: "๐™ž๐™ฃ๐™˜๐™ก๐™ช๐™™๐™š"
});

๐™๐™–๐™ฃ๐™™๐™ก๐™š๐™๐™š๐™จ๐™ฅ๐™ค๐™ฃ๐™จ๐™š(๐™ง๐™š๐™จ);
};

๐™˜๐™ค๐™ฃ๐™จ๐™ฉ ๐™๐™–๐™ฃ๐™™๐™ก๐™š๐™๐™š๐™จ๐™ฅ๐™ค๐™ฃ๐™จ๐™š = (๐™ง๐™š๐™จ) => {
๐™˜๐™ค๐™ฃ๐™จ๐™ค๐™ก๐™š.๐™ก๐™ค๐™œ(๐™ง๐™š๐™จ.๐™จ๐™ฉ๐™–๐™ฉ๐™ช๐™จ);
};

๐™ง๐™š๐™œ๐™ž๐™จ๐™ฉ๐™š๐™ง๐™Ž๐™ฌ();

We at Ecorfy have devloped multiple projects in Django and the above is part of the code devloped by our dev team for push notifications.For any enquiries you can visit us at ecorfytech.com we would be happy to assist you.

Address

HIG-129, Pramani Plaza, 5th Floor, KPHB
Hyderabad
500085

Opening Hours

Monday 9:30am - 7:30pm
Tuesday 9:30am - 7:30pm

Telephone

+917075022389

Alerts

Be the first to know and let us send you an email when Ecorfy Technologies posts news and promotions. Your email address will not be used for any other purpose, and you can unsubscribe at any time.

Share