Simply copy and paste the following command line in your terminal to create your first Strapi project.
npx create-strapi-app my-project
Here we are: Strapi email@example.com is available!
As announced during alpha.9 release useful new features and improvements have been added in alpha.10.
🚀 Settings in database
When you deploy an API for production, your API runs on multiple servers. This is called horizontal scaling. That also means the code of your API is duplicated on each deployment, as many times as the numbers of server.
This problem has already been seen for permissions. That's why we have moved the permissions' rules into the database in alpha.9.
In this new version we decided to make the same changes for most of the API and plugins settings.
An easy to use configurations request helper has been added. We hope this improvement will make your life easier when your app is in production.
🚀 Rewrite Input Library
As you may know, the admin panel and the plugins are built on top of a useful node module named
strapi-helper-plugin. This package is kind of a front-end framework which contains the common logic shared between the plugins and the admin panel, such as Webpack, ESlint, PostCSS configurations and React files and components.
It is extremely useful to get access to reusable components. It allows plugins developers to import components with a single line of code
import Button from 'components/Button';. In this example, the helper will look for an existing component located in the
admin/src/components/Button directory of the plugin. If this component does not exist, the one in the
strapi-helper-plugin will be required.
One of the most used reusable components is the
input component. Until now, this component was containing a huge amount of logic. The more the time passed, the more this component was becoming unmaintainable. Sometimes it is better to clean things before to go any further. That's why we made the best of this release to split it into multiple components (inputPassword, inputNumber, inputDate, etc.).
🐛 Bug Fix
Here is the full changelog: https://github.com/strapi/strapi/releases/tag/v3.0.0-alpha.10.1.
Looking forward to try this new version?
1$ npm i strapi@alpha -g
1$ strapi -v
This should print
Create your first project:
1$ strapi new my-app
Choose your database credentials.
Start your server:
1 2$ cd my-app $ strapi start
If you are already building an API using firstname.lastname@example.org, we recommend you to to migrate to email@example.com. Don't worry, a fully detailed migration guide is available.
File upload is a necessary feature for almost every API. Your opinion on the Vote page confirmed that, making it the most wanted feature. Your voice matters: we already started working on it and will release the Upload Plugin it in firstname.lastname@example.org!
After that, the GraphQL Plugin will arrive!
Many improvements are coming in the next few weeks. Comment this article to tell what you expect from Strapi in the near future.
The Strapi Team
Pierre created Strapi with Aurélien and Jim back in 2015. He's a strong believer in open-source, remote and people-first organizations. You can also find him regularly windsurfing or mountain-biking!