slingbiz / sling-fe

Frontend Client source code for creating quick, responsive frontend using Sling Studio.
https://demo.sling.biz/
MIT License
1 stars 0 forks source link

Create Sling App

🚀 Live Demo

Open source drag and drop frontend CMS in NextJs. Completely customizable Pages, Templates & Widgets written in NextJs. Sling is an Open Source alternative to Builder.io.

✨ Features :fire:

🛠️ Prerequisites

To properly set up Sling, you need:

🚀 Setting up Sling - Hosted Studio

To set up a Sling project locally using Hosted Studio, follow these steps:

Frontend App Setup

  1. Use the Installer:

    • Create the Sling Frontend app by running the following command:
      yarn create sling-app my-project
    • Follow the prompts to configure your Sling app.
  2. Obtain Sling Studio Keys

    • Visit Sling Studio to sign up to create an account.
    • Complete the company setup.
    • Navigate to your account settings or profile section.
    • Locate the section for accessing or generating Sling Studio Keys.
    • Copy the keys provided and update them in the .env file for the frontend app.
    • Voilà! You can now access your app at http://localhost:4087. !
  3. Play around

    1. Access Sling Studio .
    2. Create custom widgets and use them in your page templates.
    3. Modify content from Studio and view the changes in your pages.

🌐 Setting up Sling - Self Hosted Studio

If you prefer to host Sling Studio on your local machine, follow these instructions. Sling consists of three main parts: Sling Studio, Sling API, and Sling FE.

  1. Run the Installer:

    • Use the installer to set up the Sling project by running the following command:
      yarn create sling-app my-project
  2. Follow the prompts to configure your Sling app by picking self hosted option. The starter script will start the services in the background but you can close it and start on your own.

  3. Open your browser and navigate to:

    • Frontend: http://localhost:4087
    • Studio: http://localhost:2021
    • API: http://localhost:10001

📚 Docs

🙋 Getting Help :wave:

If you have any questions or something you'd like to discuss (e.g., contributing or queries), please head over to our Slack channel.

Alternatively, you can raise a GitHub issue, or reach out directly to the author via Email or LinkedIn.