Strapi app Node.js 8 or higher and provides features such as Admin Panel, Authentication & Permissions management, Content Management, API Generator, etc. Strapi is in use for many kinds of websites, from small nonprofits and large enterprises. Using Strapi to edit your content on the web should be easy and fun. No need for learning templating and HTML. Strapi hides most of that stuff and focuses on what matters most. For more about Strapi, check its homepage. This brief tutorial is going to show students and new users how to install Strapi on Ubuntu 16.04 | 18.04 and 18.10 systems. These are the packages we’re going to set up.
Ruby version 2.5.3 MongoDB Node.js 10
Install Ruby
To install Ruby and Rails on Ubuntu, you’ll need to install some dependencies. To make that happen, install Node.js and Yarn repositories. This will make installing the dependencies easier. First, install these curl and git packages. Then run the commands below to add Node.js and Yarn repositories and keys to your system. Then install some core packages to get your environment going. When you’re done. continue below: After adding the repositories and installing the necessary packages above, install Ruby with your local profile settings using rbenv. you’ll then use rbenv to install ruby-build. After setting up your local profile. run the commands below to install Ruby version 2.5.3. If a newer version is available, replace the version number with that. visit this site to find out Ruby’s latest versions. To verify that Ruby is installed, run the commands below: You should see similar lines below:
Install Node.js
Now that the Ruby environment is set up, run the commands below to install Node.js. Run the commands below to install the Node.js repository, then install the Node.js package. Now that Node.js is installed, run the commands below to install Strapi.
Install MongoDB
MongoDB is the database that Strapi uses. So install MongoDB, and ImageMagic before continuing with setting up your website projects. After installing the MongoDB server, open a new terminal window and try. Then start an interactive mongo prompt by typing the command below: ctrl+c to exit.
Install Strapi
Now that your environment is ready, run the commands below to install Strapi and build your first site. Next, run the commands below. Next, create a folder for your project, then change it into the Strapi folder and install it there. The generator will ask a couple of questions about the configuration. Go ahead and select the default options. Say Y when the generator asks to answer the questions: Once you’ve selected your requirements, the generator will prepare the skeleton of your app, configure the files and install npm dependencies as required. When you’re done, run the commands below to start the server from inside the Strapi project folder. If the first commands above don’t work. Now open your browser and browse to the hostname followed by port # 1337 Your Strapi API should be accessible at the following URL: http://localhost:1337. Then, stop the server by running ctrl + c. Next, log on to the back end and begin creating content. Use the credential you created for admin above. Now you can start building your great content. Congratulation! You have successfully installed the Strapi platform on Ubuntu 16.04 | 18.04 | 18.10 You may also like the post below: