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)
- Content history "back" link doesn't work
- Relation fields issue of Strapi upgrade
- Error when creating new collection type HOT 1
- the Admin panel always thinks its outdated HOT 1
- Possibility for Basic Auth HOT 3
- Cannot delete a collection item after renaming a component category
- Viewing unused images in Strapi HOT 1
- "Add new API token" button has not the right style HOT 1
- Error When Deploying to Strapi Cloud
- Editing a token opens a new admin tab HOT 1
- Invalid String Length HOT 1
- “site can't be reached” flicker after saving a content type HOT 1
- Can add two attributes with the same name and save HOT 1
- Casing in component display name not respected HOT 1
- Long titled Collection Type breaks buttons display
- REST API filters $contains operator not working in Strapi Cloud environment
- Strapi fetches old single type data randomly
- [missing feature] Doesn't V4 "Fill in from another locale feature" exist in V5 so far ? HOT 1
- Copying content from blocks doesn't work as expected
- There is no problem when uplodding the media library, but if I want to change the logo i get error
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.