How to install Strapi
The world’s latest technologies, policies, business-boosting strategies will be written here. Contact Morosoft

In this article, we will check how to install Strapi. Strapi is a headless CMS that lets you connect to any back-end database of your choice, create APIs and consume them in any front-end library such as Vue, React, Angular, mobile applications and IoT. I will not discuss Strapi here in detail. Because it is totally out of the scope for this article.

If you want to learn the basics of Strapi, go check out my previous article.

Now let’s move to the main part.

Install and create a Strapi project

1). Prerequisite:

Before installing Strapi, please make sure that Node and npm are installed on your machine. You need to run these commands in CMD to check if both of them are installed or not.

node -v: To check Node is installed
npm -v: To check npm is installed

node and npm

2) Install Strapi

Now Let’s install Strapi using npm. you can also use yarn to install but it’s totally up to you. As Strapi’s beta version is released, therefore we will be using beta version instead of alpha. We will install it globally by using -g with command in order to access it from any other project directory.

npm i strapi@beta -g

strapi version

Now once it’s installed let’s go ahead and verify by asking for version. Therefore Run this command to verify.

strapi -v

strapi installation

Ok, we got It, now strapi is successfully installed on our machine with version 3.0.0-beta.17.4.

Now next thing here is to create a project.

3) Create a new project with –quickstart flag

Let’s create a project using — quickstart flag with command.

npm create strapi-app awesome-project –quickstart

This command will install everything for you automatically. It will do all the configurations and will connect you to the SQLite database.

Now if you leave the –quickstart flag, you’ll get the same exact steps except it will give you an option to connect to the database of your own choice. It can be MongoDB, MariaDB, SQLite, PostgreSQL.

Now the next step is to create an Administrator user.

4) Create an Administrator user:

To run your project on a local machine, run this command in CMD

strapi develop

Now navigate to http://localhost:1337/admin and it will show something like this.

registration screen

Now go ahead and fill this form, Provide these details:

    • Username
    • Password
  • Confirm Password
  • Email

Click ready to start.

admin panel

If you have this screen, congratulations you have now completed the requirements for creating your first project in strapi

In this admin panel, we will create a content type, create category content type, add content and will set roles and permissions. But this is something, we will do in the coming articles.


Please enter your comment!
Please enter your name here