create-sling-app

1.4.9 • Public • Published

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 🔥

  • It's just React & NodeJs
  • Control how your components are edited: With Sling.biz, you control the React widgets and their props from the Studio directly.

🛠️ Prerequisites

To properly set up Sling, you need:

  • MongoDB URI: Make sure you have a MongoDB instance running and obtain its URI.
  • Node.js: Ensure you have Node.js version 18 or greater installed.

🚀 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 👋

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.

Readme

Keywords

none

Package Sidebar

Install

npm i create-sling-app

Weekly Downloads

3

Version

1.4.9

License

MIT

Unpacked Size

149 kB

Total Files

7

Last publish

Collaborators

  • sling.biz