Coder Social home page Coder Social logo

Comments (9)

Aurelsicoko avatar Aurelsicoko commented on May 1, 2024

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.

loicsaintroch avatar loicsaintroch commented on May 1, 2024

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.

Aurelsicoko avatar Aurelsicoko commented on May 1, 2024

@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.

loicsaintroch avatar loicsaintroch commented on May 1, 2024

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.

Aurelsicoko avatar Aurelsicoko commented on May 1, 2024

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.

loicsaintroch avatar loicsaintroch commented on May 1, 2024

Agreed.

from strapi.

ogrotten avatar ogrotten commented on May 1, 2024

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.

Aurelsicoko avatar Aurelsicoko commented on May 1, 2024

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.

loicsaintroch avatar loicsaintroch commented on May 1, 2024

We'll definitely create a $ strapi init command for the next release.

Thank you @ogrotten!

from strapi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.