parse-community / parse-server-example

Example of Parse Server using the express framework.

Home Page:http://parseplatform.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Move code to /src

sadortun opened this issue · comments

Hi!

What do you think about moving sources to /src folder ? I think it could make it more clear for new users what's config VS actual code ?

Have a nice day,
Samuel

I don't mind this suggestion, I think it could tidy up folder management. The current setup gives the impression that all these files are needed to create a Parse Server, when in reality it's only a few (which would be contained in /src.

I think that a lot of docs would need to updated inline with this change, just to make sure there's no confusion.

We are also working on a CLI version to generate an example Parse Server, so this way you only receive files that you need (for example, you would only receive ESLint files if you select ESLint in the CLI config)

Nice ! So should I open a PR with this first step or we wait for your CLI?

@mtrezza what are your thoughts?

Good idea, I think a /src folder is a common practice, and we also use it in the parse-server repo.

I assume that includes the index.js and contents of /cloud? We would have to look into the docs and readme whether changes are necessary, because the concept of /cloud/main.js has been around for years, so there may be references to it.

We would have to look into the docs and readme whether changes are necessary

The important would be to make sure to update links that points to theses files to avoid 404. But if we forget a few links that only mention /cloud , it's not a big deal.