Skip to main content
In this quickstart, you build a one-page Site with a working contact form, without a framework or a build step. If you use a framework, see the framework guides instead.

Before you begin

  • Sign in to the Liteshop dashboard.
  • Install a tool that creates ZIP files. The examples use the zip command, which macOS and most Linux distributions include.

Create the files

  1. Create a folder named my-site.
  2. In my-site, create liteshop.json. This manifest declares the Site and its contact Form:
  3. Create index.html. The page loads the Liteshop SDK from the Site’s own address, /_liteshop/sdk/v1.js, before your script:
  4. Create main.js. It sends the form to Liteshop instead of letting the browser post it:
    Pass the Form ID as a literal string, as shown. Liteshop reads that call in your JavaScript to check that the declared Form has a handler.

Package and publish the Site

  1. Create a ZIP file of the folder’s contents, so that index.html and liteshop.json are at the root of the archive:
  2. In the Liteshop dashboard, click Website > Upload files.
  3. Enter a Site name and subdomain, select site.zip, and click Check and publish.
If validation fails, Liteshop lists each problem and how to fix it. For an explanation of each code, see Validation errors.

Test the form

  1. Open the live Site, for example https://my-site.liteshop.me.
  2. Send a message with the form.
  3. In the Liteshop dashboard, click Messages. Your message appears there.

What’s next