Preparation:
- To install server Laragon/WAMP/XAMPP (Windows OS user)
- To install MySQL GUI go to https://www.heidisql.com/download.php
- To install NodeJS & NPM go to https://nodejs.org/en/download/
We will use this commands:
node -v
npm -v
npm install --global yarn
yarn --version
echo "create database strapi_db;" | mysql -uroot -p
yarn create strapi-app project-name
cd project-name
yarn develop
open http://localhost:1337/admin
Open your command prompt (terminal window):
- Check that NodeJS is running:
node -v
- Check that NPM is running:
npm -v
- Install Yarn package manager :
npm install --global yarn
- Check Yarn is running:
yarn --version
- Crate a new database for Strapi 'strapi_db':
echo "create database strapi_db;" | mysql -uroot -p
, or you can use PHPMyAdmin or HeidiSQL - Install strapi:
yarn create strapi-app project-name
- Select language preference, Javascript or Typescript
- Select database server preference, MySQL or PostgreSQL
- Press Enter key for default answer
- Put same database name as you created before
strapi_db
- Select "N" for SSL
- If installation is successful, tables are generated automatically for your database
- Get into your project folder:
cd project-name
- Run strapi:
yarn develop
- Open Strapi Admin in your browser:
http://localhost:1337/admin
As always, you are welcome to share your thoughts.
Top comments (0)