Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

📙 Clarification about Parse Server installation methods #878

Open
3 tasks done
MrMartinR opened this issue Jun 11, 2022 · 8 comments
Open
3 tasks done

📙 Clarification about Parse Server installation methods #878

MrMartinR opened this issue Jun 11, 2022 · 8 comments

Comments

@MrMartinR
Copy link
Contributor

MrMartinR commented Jun 11, 2022

New Feature / Enhancement Checklist

Current Limitation

Confusing about Installation

Feature / Enhancement Description

Be more clear about the different installation options / unify the info in one place

Example Use Case

I think I mess up my installation because I did install parse-server from npm and also I did run the bootstrap file, and I think I have 2 parse servers,
I think I was running the bootstrap version but I had some drama when I tried to add parse server to PM2, adding environment variables, etc..

Also I need clarification about this, because I was editing the docs and In the ubuntu deployment I stated to perform both installations (via npm and via bootstrap)

Also the files and folder structure are not the same
Screen Shot 2022-06-11 at 17 06 03

btw: the key generations in the bootstrap script doesn't work at least in ubuntu

Alternatives / Workarounds

Learn more about devOps

3rd Party References

none

@parse-github-assistant
Copy link

parse-github-assistant bot commented Jun 11, 2022

Thanks for opening this issue!

  • 🎉 We are excited about your ideas for improvement!

@mtrezza
Copy link
Member

mtrezza commented Jun 11, 2022

Transferring to docs, since this seems to be a docs issue, not a product issue.

@mtrezza mtrezza transferred this issue from parse-community/parse-server Jun 11, 2022
@mtrezza
Copy link
Member

mtrezza commented Jun 11, 2022

I think I mess up my installation because I did install parse-server from npm and also I did run the bootstrap file, and I think I have 2 parse servers,

Where did you see an instruction to execute both?

Looking at the Parse Server README I see only this:

$ npm install -g parse-server mongodb-runner
$ mongodb-runner start
$ parse-server --appId APPLICATION_ID --masterKey MASTER_KEY --databaseURI mongodb://localhost/test

@MrMartinR
Copy link
Contributor Author

I haven't see both in the same place, I saw the npm version in the README and the Bootstrap version in the Docs Getting Started Section.
Use the bootstrap script to set up Parse Server in the current directory.

I assumed? that maybe the npm was some library that parse-server needed and the "official" parse server installation was the Bootstrap version that maybe also installed the npm... 🤷‍♂️
Or maybe I thought that the npm was 'the one' and the Bootstrap was the parse-server I need to clone/fork to contribute to the project 🤷‍♂️ I just installed both🤦‍♂️

To be honest, no idea what is the difference, are they the same?

@mtrezza
Copy link
Member

mtrezza commented Jun 12, 2022

The bootstrap script installs parse server - and more. You can take a look at the script to see whether it's useful for you. The npm i -g parse-server installs parse server globally, which makes it accessible from anywhere in the CLI but may make it more difficult for Parse Server development when switching between versions of Parse Server frequently.

What is right for you depends on what you want to do. Either guide works, but with different implications.

I agree that this may seem confusing for new developers who are just getting started with Node.js development. A proper guide should consolidate and offer both approaches to set up Parse Server and explain the differences. But it doesn't make any sense to duplicate that information in the README and the docs. The README should be stripped of all docs-like content and that content should move into the docs.

If you want to look more into this, see the npm docs link I posted above and study the bootstrap script to see what it does. It may be a bit of work, but the learning and insight should be worth it. And maybe you want to open a PR afterwards to improve the docs in that regard.

@mtrezza mtrezza changed the title Parse Server Installation Methods Clarify Parse Server installation methods Jun 12, 2022
@MrMartinR
Copy link
Contributor Author

I agree 100% that the README (and the wiki) should not contain any doc related stuff... I am gonna try to dig into those 2 options and edit the AWS Deployment Guide (it states to do both installs)...
probably more questions will pop in my head, should I come back here? or use Slack??

@mtrezza
Copy link
Member

mtrezza commented Jun 12, 2022

Great, it's best to discuss docs changes here, since it has more visibility and allows for collaboration. This issue is just to clarify the installation installations in the docs. If your changes are broader, then I suggest opening a separate issue.

@MrMartinR
Copy link
Contributor Author

I did refactor the AWS guide, I decided to install Parse Dashboard Globally and Parse-Server locally but without using the Bootstrap script, after checking the bootstrap I think is not worth to use it in the AWS deployment, only generates a couple of extra files...
also I fix the block codes from js to json

@MrMartinR MrMartinR changed the title Clarify Parse Server installation methods 📙 Clarification about Parse Server installation methods Jun 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants