Comments (9)
Each application connected to the Strapi Studio has a unique identifier. This identifier is available in the ./config/global.json
file. We could display it before the project name?
from strapi.
I have a question about forcing users to use unique app names. Do you think about a unique name like an identifier for every app of every user juste like Heroku do? Or a unique app name by user?
from strapi.
@loicsaintroch A unique name for every app of every user would mean that the CLI $ strapi new <appName>
should return an error in case this name already exists?
from strapi.
A unique identifier is the best way, just like Heroku does.
Either the user does $ strapi new
and the Strapi Studio defines a unique and unused identifier for the app. Or the user defines a name with $ strapi new <appName>
and the Strapi Studio returns an error if the name (identifier) is already taken. In both solutions, an Internet access is needed, which sucks...
There are some tricky use cases: no Internet access, Studio connection disabled, etc.
from strapi.
I think our current solution is the best. We already have a unique identifier. In my opinion, this is an user experience problem, not a technical problem.
We can't require an Internet access. If the Strapi Studio connection failed for many reasons, we have to create another command $ strapi init
to identify this project with the Strapi Studio. This will return and give an identifier to the project.
Moreover this command could be very interesting to change and get a new identifier for a project. Currently, we have to create a new app with the existing CLI $ strapi new <appName>
and copy the files into it to change our identifier.
from strapi.
Agreed.
from strapi.
It is a UX problem, to be sure.
I think a simple solution which doesn't change the current method at all would be to show the creation date on the dash right there with the project name. This doesn't require extra access as the date is on the package.json file.
strapi init
could also contain a number of commands for general maintenance of a project... regenerating the secret key, renaming the proj, perhaps even more involved things like changing the database. Seems like feasibly an entire wing of the whole strapi project.
from strapi.
I added the unique identifier next to the app name, and also the creation date to be sure there is no confusion. You will see those changes in the next release.
from strapi.
We'll definitely create a $ strapi init
command for the next release.
Thank you @ogrotten!
from strapi.
Related Issues (20)
- sanitizeQuery return an object instead of an array if the length is > 200 HOT 1
- Strapi 5: Can't create admin during installation - Cannot find module @rollup/rollup-darwin-arm64 HOT 4
- Disabling Draft & Publish modal doesn't close or doesn't appear
- Inconsistency in the OpenAPI contract for mandatory Media type relationships generated by Documentation plugin
- Number values are not shown as when linked in a relation
- Enabling D&P on a CT : draft documents get the "modified" status instead of "draft"
- D&P x Relations : no Draft relations displayed when switching from draft to published tabs
- Draft relations are not displayed correctly
- When enabling i18n on an existing CT with existing published versions on by default locale, it creates a Draft in the new locale automatically
- API tokens and Transfer tokens “Create new token” have a text decoration HOT 3
- [v5] (admin panel) Dialog modal not closing after deleting RBAC role
- I'm unable to create a strapi project. I ran the command npx create-strapi-app@latest my-project and it gets stuck on the installation. HOT 1
- core database possible bug and performance improvement HOT 1
- Crashing frontend after select entry with repetable components HOT 1
- 🐛 GraphQL: Unknown argument \"filters\"
- Admin Panel Doesn't load on Fresh Install HOT 2
- Generate API Token duration error HOT 1
- v5: required relation errors the UI
- Relations not saved when updating content type HOT 2
- plugin_i18n_default_locale stays 'en', even if STRAPI_PLUGIN_I18N_INIT_LOCALE_CODE is set
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from strapi.