LamanHub Logo
Blog

Step-by-Step: Launch Your Own Blog with Laman.js and Wisp CMS in No Time!

Tutorial September 21, 2024

Laman.js Blog with Wisp CMS

Building a simple blog is an effective way to share ideas and information. With Laman.js and Wisp CMS, you can create a functional and appealing blog without hassle. In this guide, I will walk you through the practical steps to get started.

What is Wisp CMS?

Wisp CMS is a content management system (CMS) designed specifically for blogging needs. As a headless solution, Wisp CMS provides a simple and efficient writing experience, facilitating collaboration between developers and content creators. With an intuitive interface and flexible features, Wisp CMS is an ideal choice for bloggers who want to focus on content.

Why Use Laman.js?

Using Laman.js to create your blog offers several advantages. This framework simplifies development, supports dynamic features such as Server-Side Rendering (SSR) and data fetching, and integrates smoothly with LamanHub for quick deployment. Laman.js ensures optimal performance and a good user experience through intuitive templating. Additionally, as an open-source solution, Laman.js provides flexibility in managing your blog.

Preparation

Create a Wisp Account

  1. Visit the Wisp sign-up page at Wisp Signup and choose your preferred registration method (form or Google login).

    Create Wisp Account

  2. Once registered, navigate to the Setup tab.

    Wisp Setup

  3. Copy your Blog ID for later use.

Create an Account and Project on LamanHub

To facilitate the deployment process from Laman.js, you need to create an account on LamanHub.

Steps:

  1. Go to the LamanHub registration page at LamanHub Signup.

    LamanHub Registration Form

  2. After registering, create a new project and enter the name of your blog project.

    Create LamanHub Project

Install Node.js

Make sure you have Node.js installed on your system. For installation instructions, visit Node.js Installation Documentation.

Step 1: Install LamanBlog-Wisp

You can install LamanBlog-Wisp through Showcase with the following command:

npm init lamanjs my-blog -- -s lamanhub/lamanblog-wisp

Step 2: Install Dependencies

Once the project is created, navigate to the project directory:

cd my-blog

Then, install all required dependencies with the command:

npm install

Step 3: Configuration

Customize the ./src/config.ts file according to your needs. Here’s an example configuration you can use:

export default {
  title: "Your Blog Title", // Replace with your blog title
  description: "A Brief Description of Your Blog", // SEO description
  image: "/path/to/profile.jpeg", // Replace with the path to your profile image
  navlinks: [
    {
      link: "/", // Link to the home page
      title: "Home", // Title for this link
    },
    // Add additional navigation links as needed
  ],
  socials: [
    {
      link: "https://www.facebook.com/username", // Replace with your Facebook link
      title: "Facebook", // Title for this link
      icon: "bxl:facebook", // Facebook icon
    },
    {
      link: "https://instagram.com/username", // Replace with your Instagram link
      title: "Instagram", // Title for this link
      icon: "bxl:instagram", // Instagram icon
    },
    {
      link: "https://github.com/username", // Replace with your GitHub link
      title: "GitHub", // Title for this link
      icon: "bxl:github", // GitHub icon
    },
    {
      link: "https://www.linkedin.com/in/username", // Replace with your LinkedIn link
      title: "LinkedIn", // Title for this link
      icon: "bxl:linkedin", // LinkedIn icon
    },
  ],
  wisp_blog_id: "cm192kote0000muzvatd87r81", // Replace with your Wisp Blog ID
};

Step 4: Build for Production

After completing the above steps, build your project to prepare it for production with the following command:

npm run build

Step 5: Deployment

Once the build process is complete, deploy your blog using the command:

npm run deploy

This command will open a new browser tab, prompting you to select the project where this blog will be installed. Choose the LamanHub project you created earlier.

Choose LamanHub Project

Step 6: Check Your Deployment

After the deployment is successful, visit the subdomain provided by LamanHub for your project. This will allow you to verify that your blog is live and functioning as expected.

Screenshot from 2024-09-21 10-22-15.png

Conclusion

By following the steps above, you have successfully created a simple blog using Laman.js and Wisp CMS. This process demonstrates that building a platform for sharing thoughts and information can be practical and efficient. With the features provided by Laman.js and Wisp CMS, you now have a powerful tool for managing content and engaging with your audience. I hope your blog flourishes and becomes a valuable resource for many. Happy blogging!