How to Set Up and Install Strapi on Ubuntu



How to Set Up and Install Strapi on Ubuntu

How to Set Up and Install Strapi on Ubuntu

Strapi is an opensource, headless Content Management System (CMS), built with the JavaScript programming language. Like other headless CMS’, Strapi doesn’t come with a frontend out of the box. Instead, it relies on an API that allows you to architect your content structure. Additionally, Strapi offers a variety of ways to build out your website, integrating with popular frameworks like React and Next.js. Furthermore, you can choose how to consume an API using either a REST API or GraphQL.

In this video, you will install Strapi and set up a production environment to begin creating content. While Strapi runs SQLite in its development mode, you will configure it to use PostgreSQL. You’ll also serve your Strapi application behind an Nginx reverse proxy.

Prerequisites
You will need an Ubuntu server with Nginx, Postgresql, Node already installed.JS 16 version. At the time of taking the video, Strapi does not work correctly with a version higher than 16. You can find out how to install all the application data by following the tips in the video

Commands used
sudo -i -u postgres createdb strapi-db
sudo -i -u postgres createuser –interactive
sudo -u postgres psql
ALTER USER mivo PASSWORD ‘postgres_password’;
q
npx create-strapi-app@latest my-project
cd my-project
NODE_ENV=production npm run build
node /home/mivo/my-project/node_modules/.bin/strapi start

Useful Links
VPS/VDS – https://www.mivocloud.com/
Strapi – https://strapi.io/

Comments are closed.