Introduction Last updated: 2022-04-15
Sling is a Less Code Frontend Framework and CMS which can be used to create quick & responsive frontend websites by easily picking different flavours and connecting their Backend Apis. Sling comes with different flavours to support different types of UI & websites.
-
Default
- Add your own widgets & Apis and use global api reducer to access the data. By default, this comes with pages forProduct Listing, Detail and Static Home Pages
-
Classifieds
- Useful for creating Listing websites. Eg. Restaurant Search or Property Listing or a Used Cars website. -
ECommerce
- Useful for creating Ecommerce sites. Connect Apis and use Sling provided reduces to get data on the UI..
Head for your Headless Backend. Be it an Ecommerce or an Event booking site, easily bootstrap your pages by connecting backend Headless Apis and attaching React widgets to your Pages.
Features
Frontend CMS:
Studio to manage and customize your frontend on the go. Manage layouts of the page and adjust visibility on devices for all the pages from a single admin panel. Pick a template flavour, connect your own backend Apis to Sling and get your frontend in an instant. Create Page Templates and extend them to create any no of pages using Page Routes section.
NextJs & Material UI
Built completely on NextJS and material UI. Sling abstracts out the common functionalities and uses global routes and layout config from the Sling Studio to create the page.
Widgets & Components
Create your own widgets or download from a comprehensive list of page templates and components in Sling Marketplace. Customize as per needs and use them in your App.
Sitemaps, AMP Pages and More
Manage your sitemaps, link AMP pages and stories to your main pages. Customize Theme, setup Cron and Emailers from one place and setup all site analytics from the Sling Studio.
What's next?
If you're already convinced to use Sling, check the Installation guide.
And If you want to learn more, check out the Key concepts behind Sling.
Quick Start Guide
Sling offers a lot of flexibility. Whether you want to go fast and quickly see the final result,
or would rather dive deeper into the product, we got you covered.
Prerequisites
Make sure Node.js and yarn are properly installed on your
machine. It is also possible to use npm instead of yarn
(see install
the Npm package).
👇 Let's get started!
🚀 Step 1: Create a new project with Sling
# with Yarn
yarn create sling-app my-project --quickstart
# with NPM
npx create-sling-app my-project --quickstart
Step 2: Set the license key and email
Once the download is complete, you will be prompted to enter the license key and email. Sling community is free forever. This is required to manage frontend from the Sling Studio.
?
Your email address?
> cto@awesomecompany.com
Next your unique Sling license Key which can be easily generated once after signing up on the Studio.
?
Your Sling License Key?
>
195b2d33-b996-471b-90c6-d4cdde525
If not prompted with Sling Api Key and Email? You can set up the same in your environment files.
.env
NEXT_PUBLIC_GET_INIT_PROPS=https://sling.biz/api/v1/frontend/getInitProps
NEXT_PUBLIC_CLIENT_KEY_SECRET=your-sling-secret-key
NEXT_PUBLIC_CLIENT_ID=your@email.id
Once the installation is complete, Visit the below URL on your local to view your Sling Frontend App .
http://localhost:4087
You should see a functioning demo frontend.
Home Page

For Product Listing Page, You can visit /dubai/women/clothes/products

Step 3: Manage Frontend with Sling Studio
Login to Sling Studio and manage your layout, css and customize your frontend site on the fly.
For any queries, Please contact contact our support team.
Enterprise
Sling Enterprise is a commercial offering from the Sling core team built
on top of the open-source product.
It's goal is to give you all the tools you need to launch your Frontend Website
and provide you with ready-to-use integrations
that will reduce your project's development time and cost.
Sample Screenshots
The screenshots below are taken from Sling Studio.
Differences between Open Source and Enterprise versions
- Access to all the Flavors, Page Templates & Widgets
- Access to cloud and managed services
- Unlimited usage for other tools - Manage Analytics and 3rd party apps.
Use Cases
- Frequent updates on your Static and Marketing pages can be productivity killer. Instead, Sling can come very handy in updating content on the fly from the Studio. Use Page Templates to create blueprint of your static pages and create as many Page Routes (Actual URLs) by over-riding the defaults.
-
- Create Page Templates for Listing and Detail pages and customize the Banners run time from Sling Studio for category and product pages.
-
- Browse marketplace to buy ready to use widgets for your website or ecommerce storefront.
-
- Sling comes with ready to use customizable Material UI theme and bootstrapped NextJS code. This can be used to create any kind of website quickly. Example use cases can be - A Real Estate Property search platform, a Used Car web portal, and advanced Blog or an Ecommerce webapp.
-