One place for hosting & domains

      How To Generate a Vue.js Single Page App With the Vue CLI


      The author selected Open Sourcing Mental Illness to receive a donation as part of the Write for DOnations program.

      Introduction

      Vue.js is a popular JavaScript framework for creating user interfaces. Created in 2014 by Evan You (formally of Google), Vue.js is often described as a combination of React and Angular, borrowing the prop-driven development of React and the templating power of Angular. This makes Vue an accessible framework for beginners to pick up, especially since it focuses on traditional HTML and CSS, rather than being a CSS-in-JS framework like React or relying on TypeScript (a superset of JavaScript) like Angular does.

      When starting a new project, it’s best to familiarize yourself with the technology’s tools and features. One important tool for Vue.js development is its command line interface (CLI) known as Vue CLI 3. The Vue CLI offers a number of useful features that enhance the Vue development experience, but the main feature is its ability to generate and pre-configure a new single-page application with the vue create command.

      By the end of this tutorial, you will have a working Vue.js application running on a local Node server. This local server uses hot module reloading via Webpack to provide immediate feedback, rendered in-browser as you work. Along the way, you will create .vue single-file components (SFC), such as a header and a footer. All of this you can save as a solid foundation for any future Vue projects.

      Prerequisites

      To follow this tutorial, you will need the following:

      Step 1 — Downloading Vue CLI 3

      To download Vue CLI 3, you will need to run a command either via npm or Yarn, whichever you prefer. npm or Node Package Manager is a way to download and manage other people’s code to use in your project as a dependency. Yarn, on the other hand, executes NPM commands under the hood but provides additional features like caching. It’s up to personal preference regarding which one to use. However, it is important to note that it’s not recommended to mix commands. It’s best to be consistent with one or the other for the duration of your project.

      Moving forward, this tutorial will use npm commands. The following command will download the necessary Vue CLI files from the registrar, which in this case is the npm (Node Package Manager) service:

      npm i -g @vue/cli
      

      Note: On some systems, installing an npm package globally can result in a permission error, which will interrupt the installation. Since it is a security best practice to avoid using sudo with npm install, you can instead resolve this by changing npm’s default directory. If you encounter an EACCES error, follow the instructions at the official npm documentation.

      You install this globally in order to use the CLI anywhere on your machine. If you don’t install this globally, it will only work in the directory that you installed it at. In the case of the command options, i means “install” and -g is a flag to install the code globally on your computer.

      To verify if Vue CLI 3 was properly installed, run the following:

      vue --version
      

      You will receive the following output with a version number. Your version number may differ, but if you receive a response with a version number, you’ve properly installed Vue CLI 3:

      Output

      @vue/cli 4.5.6

      To update Vue CLI 3, run the previous commands in this section, and the latest version will be installed.

      At this point, you have successfully downloaded npm globally along with the Vue CLI tool that you will use in the next section to create a generated Vue.js project.

      Step 2 — Generating a Single-Page Application

      As you develop Vue.js applications, you may find that manually configuring a project is not the most productive use of your time, since configuring a new Vue.js project from scratch can take hours. This is the true power of Vue CLI: It provides you with a pre-generated template that is based on your specifications. Because of this, it’s already configured so you can start developing your website or application right away. Vue CLI 3 will ask you a few questions via a command line prompt about your project, download the required files, and pre-configure it for you so you are ready to work as soon as it’s done.

      To generate a single-page application, navigate to the directory you’d like your Vue project in, then run the following:

      vue create vue-starter-project
      

      The highlighted section of the command is the name of the root directory of the project. This will be the name of the folder that contains all of your Vue.js project files. This can be whatever you’d like, but in the case of this tutorial, you will use vue-starter-project.

      Once you type out that command, continue by pressing Enter. You will then receive the following prompt:

      Vue CLI v4.5.6
      ? Please pick a preset: 
        Default ([Vue 2] babel, eslint) 
        Default (Vue 3 Preview) ([Vue 3] babel, eslint) 
      ❯ Manually select features 
      

      If you do not want to configure your project and opt for the defaults, you can do so with either Vue 2 or Vue 3. For the purpose of this tutorial though, it’s recommended to manually select your features. By selecting specific features, you will see how each option you selected was installed by the CLI.

      Select Manually select features with ENTER. Immediately you’ll receive a number of different options, including: Choose Vue version, TypeScript, Router, and Vuex. Notice that some of these items are already selected (the bubble is filled in). You may select as many or as few as you’d like. However, for this tutorial, select the following by pressing <space> on the entry:

      ...
       ◉ Choose Vue version
       ◉ Babel
       ◉ TypeScript
       ◯ Progressive Web App (PWA) Support
       ◉ Router
       ◉ Vuex
       ◉ CSS Pre-processors
       ◉ Linter / Formatter
      ❯◯ Unit Testing
       ◯ E2E Testing
      

      Once you have your options selected, press the ENTER key. The CLI will ask you further questions regarding each of the features you selected for your project, in order. The first question will ask which version of Vue you’d like to use: 2.x or 3.x. You’ll use Vue 3 for this tutorial, but you may want to use Vue 2 if you want greater support from the Vue Community:

      ...
      ? Choose a version of Vue.js that you want to start the project with 
        2.x 
      ❯ 3.x (Preview)
      

      The next question is regarding TypeScript integration. If you are not familiar with TypeScript, that’s alright. This option was intentionally selected to illustrate how Vue CLI 3 downloads what you defined as required for unique project. This tutorial will not use the class-style syntax, but will use Babel alongside TypeScript.

      When encountering the following, enter N:

      ...
      Use class-style component syntax? (y/N) N
      

      In the following prompt, enter Y:

      ...
      ? Use Babel alongside TypeScript (required for modern mode, auto-detected polyfills, transpiling JSX)? (Y/n) Y
      

      Next, Vue CLI will ask about history mode. History mode will make each route its own URL. This means you will not have the /#/ (hash) in your application’s URL. If you do use history mode, you will need a Node server to run your project. This is not a problem, because Vue CLI 3 provides you with a Node server.

      Type Y to answer yes to history mode:

      ...
      ? Use history mode for router? (Requires proper server setup for index fallback in production) (Y/n) Y
      

      The next question is regarding CSS pre-processors such as Sass or LESS. A CSS pre-processor is CSS with added features like nesting and variables. The browser cannot read this, so when the project is built, Node will compile all of your SCSS or LESS code to traditional CSS. Since you are using Node to build your project, it’s recommended to select Sass/SCSS (with node-sass) as your pre-processor. Later on, you’ll add lang attributes in your .vue components to enable SCSS on a per component basis:

      ...
      ? Pick a CSS pre-processor (PostCSS, Autoprefixer and CSS Modules are supported by default): 
        Sass/SCSS (with dart-sass) 
      ❯ Sass/SCSS (with node-sass) 
        Less 
        Stylus 
      

      After that, you will receive some questions regarding the linter style. A linter is a program that evaluates your code as you develop your application. This linter can enforce a number of syntactical rules during development. In addition to this, your integrated development environment (IDE) can read this configuration file and format your code on save. This will keep your code consistent no matter who works on your project and what operating system or IDE a developer is using.

      For this tutorial, choose ESLint + Standard config:

      ...
      ? Pick a linter / formatter config: 
        ESLint with error prevention only 
        ESLint + Airbnb config 
      ❯ ESLint + Standard config 
        ESLint + Prettier 
        TSLint (deprecated) 
      

      This selects a set of rules for ESLint to enforce. These configurations include options like the use of trailing commas, semi-colons at the end of a line, or using const over var in JavaScript.

      The next option is selecting when you want ESLint to format your code. This can be either on save or when you commit your code to a service like GitHub, GitLab, or BitBucket. It’s recommended to select Lint on save so you can review any changes before committing to version control:

      ...
      ? Pick additional lint features: (Press <space> to select, <a> to toggle all, <i> to invert selection)
      ❯◉ Lint on save
       ◯ Lint and fix on commit
      

      Once you select your lint features, Vue CLI will ask you about how you want to store these configurations, whether in dedicated files or in the package.json. It’s considered standard practive to store configurations in their own files for a few reasons. One, configurations are easier to share between projects this way, and two, you’ll be keeping your package.json as legible as possible by only defining the important information about your app:

      ...
      ? Where do you prefer placing config for Babel, ESLint, etc.? (Use arrow keys)
      ❯ In dedicated config files 
        In package.json
      

      Once you are done, the CLI tool will ask if you want to save this selection as a preset for future projects. This is useful if you are generating projects for your employer and you want everything to stay consistent.

      Go ahead and save this configuraion as a preset; Vue CLI will ask you to rename it. Name it DigitalOcean Vue Tutorial Series:

      ...
      ? Save this as a preset for future projects? Yes
      ? Save preset as: DigitalOcean Vue Tutorial Series
      

      Now you can use these exact same settings for a future project.

      At this point, you will have something along the lines of this in your terminal summarizing all of your options:

      ? Please pick a preset: Manually select features
      ? Check the features needed for your project: Choose Vue version, Babel, TS, Router, Vuex, CSS Pre-processors, Linter
      ? Choose a version of Vue.js that you want to start the project with 3.x (Preview)
      ? Use class-style component syntax? No
      ? Use Babel alongside TypeScript (required for modern mode, auto-detected polyfills, transpiling JSX)? Yes
      ? Use history mode for router? (Requires proper server setup for index fallback in production) Yes
      ? Pick a CSS pre-processor (PostCSS, Autoprefixer and CSS Modules are supported by default): Sass/SCSS (with node-sass)
      ? Pick a linter / formatter config: Standard
      ? Pick additional lint features: Lint on save
      ? Where do you prefer placing config for Babel, ESLint, etc.? In dedicated config files
      ? Save this as a preset for future projects? (y/N) 
      

      Press ENTER, and Vue CLI will start creating your app.

      When completed, cd (change directory) in your project name (vue-starter-project):

      Next, start the application with npm run serve. This will run your project at a port on your localhost, usually :8080. If it’s a different port, the CLI will tell you:

      npm run serve
      

      You do not need to download dependencies, as the CLI already did that for you. To view your generated project, open your browser of choice and visit localhost:8080 in the URL bar. You will find a welcome screen with the Vue logo and the technologies you’ve selected in the previous steps.

      Vue template screen

      You can leave this server running throughout this tutorial to monitor your changes.

      In this section, you selected a number of options specific to the project you are creating. Vue CLI downloaded all of the code needed and pre-configured it for you. You can now start working in the generated code base, including creating your own single-file .vue components.

      Now that you have a single-page application running on a Node server, make some changes to this by creating a standard header and footer. These AppHeader.vue and AppFooter.vue components will be imported in such a way that they’ll be present on each route.

      In a new terminal window, navigate into the root of your vue-starter-project folder and list out the files with the following command:

      You will receive the following output:

      Output

      README.md babel.config.js node_modules package-lock.json package.json public src tsconfig.json

      You can also view the contents of your project by opening your project in your editor of choice, such as Visual Studio Code. In either case, you will have access to a number of different files and directories. These config files in the root directory have been created because of the selections made during the intial generation of this project. The option In dedicated config files told Vue CLI to create config.js files for each service you are using, such as Babel, TypeScript, and ESLint. In addition to these files, there are a number of directories. This tutorial will go over these as you get to them.

      First, create a .vue file in the components directory and name it AppHeader.vue. You can do this right-clicking in the components directory and creating a new file in IDEs like VS Code. If you prefer terminal commands, you can do this in your computer’s terminal with the bash command touch:

      touch src/components/AppHeader.vue
      

      In this step, you are creating a single-file component that will contain all of the HTML, JavaScript, and SCSS that this chunk of code needs. Every .vue component contains three basic concerns or sections: <template>, <script>, and <style>. In this case, template is the component’s HTML.

      Open up the new file in your text editor.

      In this file, create a header by using the <header> tag inside of <template>. Inside of this <header>, add the Vue.js logo and a <p> element with the content My Vue.js Application:

      vue-starter-project/src/components/AppHeader.vue

      <template>
        <header>
          <img alt="Vue logo" src="https://www.digitalocean.com/community/tutorials/assets/logo.png" height="50">
          <p>My Vue.js Application</p>
        </header>
      </template>
      

      Keep your development server running throughout development. If you close or cancel the server process, you will not be able to view your application in the browser.

      Save the file.

      At this point, when you open your browser, you will not see the HTML rendered. That is because you need to import the newly created AppHeader.vue component into a component that is already mounted. Since App.vue is your main entry point, it’s best to import it there so our header appears on every route.

      Open up the App.vue file in your text editor, then delete the div with the ID of nav and add the following highlighted code:

      vue-starter-project/src/App.vue

      <template>
        <app-header />
        <router-view/>
      </template>
      
      <script>
      import AppHeader from '@/components/AppHeader.vue'
      
      export default {
        components: {
          AppHeader
        }
      }
      </script>
      

      When you import using ES6, you are essentially creating a variable to later reference in your code. In this case, you are storing the code from AppHeader.vue into a variable called AppHeader. You need to register it via the components property before you can use it.

      Once it’s imported, you deleted the #nav in the template and added <app-header /> before the <router-view />. This renders the component in the HTML.

      After completing this step, save any unsaved file and open your browser back to localhost:8080. Thanks to hot module reloading, you will now find your newly created header at the top of the page:

      Vue template with new header

      You’ve now created a single-file Vue component, used import to bring it into a mounted component, and monitored the change with hot module reloading (HMR). Moving forward, you will extend the functionality of components through the use of child components. You will also use SCSS (the pre-processor you selected earlier) on a per component basis with the lang attribute.

      Now that the header is imported properly into the application, return to AppHeader.vue in your text editor. Add navigation underneath <p>My Vue.js Application</p> by adding the following highlighted code:

      vue-starter-project/src/components/AppHeader.vue

      <template>
        <header>
          <img alt="Vue logo" src="https://www.digitalocean.com/community/tutorials/assets/logo.png" height="50">
          <p>My Vue.js Application</p>
          <nav>
            <ul>
              <li><router-link to="/">Home</router-link></li>
              <li><router-link to="/about">About</router-link></li>
            </ul>
          </nav>
        </header>
      </template>
      

      Now, style this to make it look more like a traditional navigation bar. Create a <style> tag at the end of the file.

      vue-starter-project/src/components/AppHeader.vue

      <template>
        <header>
          <img alt="Vue logo" src="https://www.digitalocean.com/community/tutorials/assets/logo.png" height="50">
          <p>My Vue.js Application</p>
          <nav>
            <ul>
              <li><router-link to="/">Home</router-link></li>
              <li><router-link to="/about">About</router-link></li>
            </ul>
          </nav>
        </header>
      </template>
      
      <style lang="scss">
      </style>
      

      During the inital setup, you selected the Sass/SCSS (with node-sass) option. This is why you added on the lang="scss" attribute to your style tag. If you are unfamiliar with SCSS, it’s recommended to view their official documentation for specifics on when to use nesting or variables.

      This lang attribute will give you the ability to write SCSS in your single-file component. Add the following highlighted contents in the style element:

      vue-starter-project/src/components/AppHeader.vue

      ...
      <style lang="scss">
        header {
          display: flex;
          border-bottom: 1px solid #ccc;
          padding: .5rem 1rem;
      
          p {
            margin-left: 1rem;
          }
        }
      
        nav {
          margin-left: auto;
      
          ul {
            list-style: none;
          }
      
          ul li {
            display: inline-flex;
            margin-left: 1rem;
          }
        }
      </style>
      

      This SCSS creates a horizontal navigation bar with declarations such as display: inline-flex (using Flexbox) and spaces each item out with margin-left auto. To separate the header from the rest of the content, some padding is applied with padding: .5rem 1rem along with a bottom border using border-bottom: 1px solid #ccc. You may notice that the p styles are inside of the header SCSS block. In traditional CSS, that is not allowed, but thanks for SCSS, you can do that. This is refered to as nesting. In this case, the p inside the header is the same as selecting header p in traditional CSS.

      Save your file and navigate to localhost:8080 in your browser to find the new style:

      New style for header in Vue template

      You now have created and styled your header component. Next, you will create the footer component.

      Now that you have a header, you will complete your example application with a footer. In the same components directory, create a new file with the name AppFooter.vue. The process of creating this component is the same as creating the AppHeader.vue. You can create the file in your editor or through the touch base command.

      touch src/components/AppFooter.vue
      

      As before, import this into your App.vue file. Open up App.vue and add the following highlighted code:

      vue-starter-project/src/App.vue

      <template>
        <app-header />
        <router-view/>
        <app-footer />
      </template>
      
      <script>
      import AppHeader from '@/components/AppHeader.vue'
      import AppFooter from '@/components/AppFooter.vue'
      
      export default {
        components: {
          AppHeader,
          AppFooter
        }
      }
      </script>
      ...
      

      This time, you’re importing the component after the router-view tag.

      Save the file, then open up AppFooter.vue. In your AppFooter.vue file, use the <footer> HTML tag with a paragraph:

      vue-starter-project/src/components/AppFooter.vue

      <template>
        <footer>
          <p>Copyright &copy; "current year" </p>
        </footer>
      </template>
      

      You now have a basic footer. Continue to expand on this to include the current year programmatically. This will be dynamic depending on what the year is. To achieve this, you will create a computed property. A computed property is a reactive value calculated with JavaScript.

      In Vue 3, you need to wrap your properties in the setup() function and return these values. Essentially, you are telling Vue to construct this component and provide the template to these reactive computed properties.

      To create a computed property, you’ll first need to deconstruct the computed function from the vue library. You will store this computed function and its value into a const. In Vue 3, you need to pass an anonymous function that returns a value:

      const year = computed(() => new Date().getFullYear())
      

      To add the setup function to your file, add the following script to the end of AppFooter.vue:

      vue-starter-project/src/components/AppFooter.vue

      ...
      <script>
      import { computed } from 'vue'
      
      export default {
        setup () {
          const year = computed(() => new Date().getFullYear())
        }
      }
      </script>
      

      After that, you will need to provide access to the computed property you created for the <template> to consume and render. Return an object with the year property and value in your setup() function:

      /vue-starter-project/src/components/AppFooter.vue

      ...
      setup () {
        const year = computed(() => new Date().getFullYear())
        return { year }
      }
      ...
      

      To use this value in the <template>, use interpolation with double curly braces. This is sometimes referred to the “moustache syntax”:

      /vue-starter-project/src/components/AppFooter.vue

      <template>
        <footer>
          <p>Copyright &copy; {{ year }}</p>
        </footer>
      </template>
      

      Save the file. You will now have the current year in your footer:

      Sample vue application with a computed header

      Conclusion

      In this tutorial, you downloaded the Vue CLI and created your own single-file components with AppHeader.vue and AppFooter.vue. You successfully generated a Vue.js Single Page Application (SPA) with selected features from the initial setup, and learned how all of those pieces come together. In addition, you’ve now reviewed the basic architecture of most SPAs and can use that knowledge to futher expand this project.

      Vue.js is a growing ecosystem with a number of tools at your disposable. These tools can help you quickly get started and save time by storing options as a preset. This is just the start of what Vue.js has to offer, but the CLI is perhaps one of the most important tools you will use in your Vue.js journey.

      For more information on Vue.js and Vue CLI 3, it’s recommended to read through their documentation. The CLI tool specifically has many additional features that weren’t covered in this tutorial. For more tutorials on Vue, check out the Vue Topic Page.



      Source link

      How to Create a Company Page on LinkedIn to Promote Your Small Business


      With the rise of social media marketing and the prevalence of social networks in our day-to-day lives, having a presence on a variety of platforms is a must for your company. That means creating and managing multiple accounts, which can be time-consuming.

      Fortunately, building and maintaining a company page on LinkedIn only takes a little extra time and effort. By adding an air of professionalism to your online presence and showing off your products or services, a well-rounded LinkedIn page can help polish and promote your company’s identity.

      This article will explain the many benefits of creating a company page on LinkedIn. Then we’ll show you how to launch one, pointing out the important requirements you’ll need to meet along the way. Let’s dive on in!

      Build a Website to Go with Your LinkedIn Company Page

      We offer budget-friendly Shared Hosting services with robust features and resources to help you create the perfect business website. Plans start at $2.59/mo.

      The Benefits of Having an Outstanding LinkedIn Company Page

      As a social media platform designed to help people build their professional networks, LinkedIn is a crucial resource for any business that’s hoping to grow and expand. It can help you get plugged into industry-related news and even share valuable content that promotes your company.

      When compared with individual employee profiles, a LinkedIn company page can be much more effective at showcasing your business as a whole. Of course, your employees’ profiles are still useful as well. They can act as indirect company ambassadors and help build your connections organically.

      On the other hand, a company page is a useful outlet for showing off your business’ latest news, along with your specialized products or services. LinkedIn will help deliver this content to other professionals in your industry to generate buzz and business.

      Another handy feature of the platform is that you can easily monitor the impact of your page. Notifications and visual analytics reports will keep you apprised of how often your company is mentioned on LinkedIn so that you can see the effects of your presence there.

      Plus, this will help you create effective promotional content for your page. You can keep track of trending content to see what’s working, and use custom Call to Action (CTA) buttons to send traffic towards your website. In other words, a LinkedIn company page offers a lot of potential advantages.

      How to Create an Award-Winning Company Page on LinkedIn (In 6 Steps)

      There are quite a few things to consider if you want to create a company page and successfully promote your business on LinkedIn. However, with a little careful planning, it can be worth the investment of time and energy. The steps below will help you effectively plan and build your page.

      Step 1: Ensure That You Meet LinkedIn’s Requirements for Creating a Company Page

      One potential roadblock when it comes to creating your LinkedIn company page is that there are a handful of requirements you must meet to access this feature. For instance, you’ll need to have a personal LinkedIn profile of your own. That account also has to:

      • Be at least seven days old
      • Have a profile strength of Intermediate or All Star
      • Show that you’re currently an employee at the company you wish to create a page for
      • List your company position on your profile
      • Have several first-degree connections (there’s no specific number you must reach, but the more you can include, the better)
      • Be associated with a company email address that has a unique company domain

      In short, if you’re not an active LinkedIn user already, it can be challenging to get a company page started. Fortunately, anyone who’s an employee at your business can create and manage your company page. As long as you have at least one active LinkedIn user, meeting these requirements shouldn’t be too hard.

      The one criteria that might get a little tricky is providing a company email address with a unique domain. Gmail, Yahoo, and other accounts won’t work for this purpose. You’ll need an address like johnsmith@mycompany.com.

      Fortunately, we offer an affordable solution.

      At DreamHost, we provide professional email plans for creating addresses with unique domains. They start at just $1.67 per month per mailbox. You don’t even have to register your domain or host your website with us — this service is available to anyone!

      Get Professional Email @yourdomain

      Promote your website with every message you send when you set up professional email that matches your domain with DreamHost. Plans start at $1.67/mo.

      Step 2: Add Your Company’s Details to Launch Your New Page

      Once your profile (or an employee’s profile) meets all of LinkedIn’s requirements for creating a company page, you can do so by clicking on the Work icon in the toolbar. Then scroll down and select Create a Company Page.

      Creating a new Company Page on LinkedIn.

      On the next screen, choose the tile that best describes your business. After that, you’ll be able to fill in some basic details about your company. Start with your company’s name and then create your custom LinkedIn company page URL. Don’t forget to add your website’s address as well.

      Adding company details to a new LinkedIn company page.

      Next, you can select your company’s industry, size, and type. You have to choose from several drop-down menu options, so you may need to pick the available choice that’s most relevant, especially when it comes to your industry.

      After that, scroll down to upload your company’s logo and add your tagline. These elements are essential for promoting brand recognition through your profile.

      Adding a logo and tagline to a new LinkedIn company page.

      Keep an eye on the Page Preview section to get a peek at how your company page will look. When all your information is correct, check the box to agree to LinkedIn’s terms and then hit the Create page button.

      Step 3: Spruce Up Your Company’s Profile to Attract and Inform Visitors

      After you’ve officially created your company page, you can start adding additional information and brand elements. First and foremost, you’ll probably want to include a banner image. This is a large image that will be displayed at the top of your page, similar to a cover photo on Facebook.

      DreamHost’s LinkedIn company page banner image.

      You can use the small blue pencil icons to edit various features on your company page, including your banner image. You might use a team photo, a picture of your brick-and-mortar location, a popular product image, or a relevant decorative visual.

      Additionally, you’ll want to write a compelling summary of your company for the Overview in your About section. LinkedIn provides limited space here — just 2,000 characters, including spaces — so you’ll want to make every word count. Be sure to highlight what makes your company unique and better than the competition.

      Then head over to the Jobs section of your page. Here you can provide career-related information and job postings.

      Job postings on DreamHost’s LinkedIn company page.

      Since many LinkedIn users take advantage of the platform’s job hunting features, this can help to boost your page’s visibility. Just make sure to keep it updated so you don’t have people applying for positions that are no longer available.

      Step 4: Post Regular Updates to Generate Industry-Related Content

      Now that your page is up and includes all your company’s information and some key branding elements, it’s time to start filling it with content. There are a few ways to go about this. One of the easiest is to use LinkedIn to promote blog content you’ve already created for your business website.

      A blog post on the DreamHost LinkedIn company page.

      This doesn’t require you to generate any new long-form content, and it can drive visitors to your website via your blog. Simply include LinkedIn as a part of your blog promotion strategy, and you’ll have a regular source of content for your company page.

      However, you can also include recent business news, upcoming events, and other company-specific posts to keep your followers in the loop.

      An update on DreamHost’s LinkedIn company page.

      This can be a smart and simple way to demonstrate your authority in your industry, promote events, and even attract more followers. Just remember that, as with a blog, your LinkedIn company page will thrive when filled with relevant content that your followers want to see and read.

      Step 5: Promote Your LinkedIn Company Page to Gain Followers

      Your company page isn’t very useful if no one knows it exists. Especially when you’re first getting it off the ground, promotion will be vital to gathering followers. One of the easiest ways to get started is by adding your company’s location to your page’s About section.

      The Locations section of the DreamHost LinkedIn company page.

      This makes your company and job postings more discoverable on LinkedIn. Your page will be more likely to show up in searches as a result. Using relevant keywords in your page’s content can also help to increase your reach.

      Another key promotional tactic is engaging your employees on LinkedIn. Invite them to list your company page on their own profiles and claim it as their place of employment. This will help you tap into their already existing networks to make connections with others in your industry.

      Finally, it never hurts to promote your LinkedIn page on other social channels. This may mean including links to your company page in your Twitter bio or your Facebook About section. You could also include LinkedIn among your social sharing icons on your website and blog posts.

      Step 6: Showcase Individual Products or Services on Their Own Pages

      So far, we’ve covered all the basics for creating and maintaining a LinkedIn company page. However, you can take your profile to the next level and use it as a way to promote specific products or services, by creating showcase pages as well.

      These are pages dedicated to your company’s products or services. They appear on your company page in the right-hand sidebar, under Affiliated pages.

      The showcase pages on Automattic’s LinkedIn company page.

      You can write a description, share a link, and even post content on each of your showcase pages. If you offer a wide range of products or services, this is a way to provide targeted content for each of your audiences. In some cases, this technique may be more effective than offering generalized content on your company page itself.

      If you’d like to create more traditional, campaign-based content for LinkedIn, you might also consider using the platform’s advertising options. LinkedIn ads are highly targeted and can help you reach other professionals in your industry, generate leads, attract job applicants, and more.

      Linking Up

      You have a lot of options when it comes to promoting your business on social media. With its professional audience and unique opportunities for showing off your products and services, LinkedIn can prove well worth your time.

      This guide has demonstrated how to create a high-quality LinkedIn company page in just six steps:

      1. Ensure that you meet LinkedIn’s requirements for creating a company page.
      2. Add your company’s details to launch your new page.
      3. Spruce up your company’s profile to attract and inform visitors.
      4. Post regular updates to generate industry-related content.
      5. Promote your LinkedIn company page to gain followers.
      6. Showcase individual products or services on their own pages.

      Do you need a business website to go with your LinkedIn company page? At DreamHost, we offer affordable hosting services with robust features and resources to help you create the perfect website for your company. Check out our Shared Hosting plans today!



      Source link