Skip to content

Update boilerplate template - Advanced Node & Express - #9

Merged
scissorsneedfoodtoo merged 4 commits into
freeCodeCamp:masterfrom
jeremyfiel:master
Apr 23, 2020
Merged

scissorsneedfoodtoo merged 4 commits into
freeCodeCamp:masterfrom
jeremyfiel:master

Conversation

@jeremyfiel

Copy link
Copy Markdown
Contributor

Hello

I updated the boilerplate to remove a bunch of local files originally committed which didn't pertain to the FCC curriculum. I also updated the readme, package.json and removed any references to Hyperdev in favor of Glitch.
I'm also attempting to move back to the master branch because the "gomix" branch is not customary, especially for new developers.

Let me know if anything is missing. Thanks a lot!

@scissorsneedfoodtoo

Copy link
Copy Markdown
Contributor

@jeremyfiel, thanks for taking the time to submit this PR. You're right that the gomix branch is not customary, but it's currently what we use to sync the boilerplates between GitHub and Glitch (formally Gomix, and Hyperdev before that).

Since this PR mainly brings things from the gomix branch into the master branch, I think we can safely close this and focus on your other PR: freeCodeCamp/freeCodeCamp#38572

@jeremyfiel

Copy link
Copy Markdown
Contributor Author

@jeremyfiel, thanks for taking the time to submit this PR. You're right that the gomix branch is not customary, but it's currently what we use to sync the boilerplates between GitHub and Glitch (formally Gomix, and Hyperdev before that).

Since this PR mainly brings things from the gomix branch into the master branch, I think we can safely close this and focus on your other PR: freeCodeCamp/freeCodeCamp#38572

Not only does this PR move everything to the master branch, I updated all of the deps and removed a bunch of unnecessary local files which were included previously. Also removed references to hyperdev. I changed the fcc base to merge into gomix so that doesn't break but the rest of the changes shouldn't be affected. Please review again and let me know if you can merge. thanks for your help.

@ojeytonwilliams

Copy link
Copy Markdown

but it's currently what we use to sync the boilerplates between GitHub and Glitch

Can't we just change the default branch from gomix to master? That should mean the Glitch clone link uses master. Apologies if I'm missing something obvious!

@jeremyfiel

Copy link
Copy Markdown
Contributor Author

but it's currently what we use to sync the boilerplates between GitHub and Glitch

Can't we just change the default branch from gomix to master? That should mean the Glitch clone link uses master. Apologies if I'm missing something obvious!

that was my intention. Let me know if I should change it back to master.

jeremyfiel added a commit to jeremyfiel/freeCodeCamp that referenced this pull request Apr 20, 2020

@ojeytonwilliams ojeytonwilliams left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the clean up! Just the one issue:

Comment thread server.js Resolved
… server. fixes {freeCodeCamp/freeCodeCamp/issuse/38404}
@jeremyfiel

jeremyfiel commented Apr 21, 2020 •

Copy link
Copy Markdown
Contributor Author

I must've clicked the wrong thing for your requested changes. Now a review is pending. Anyway, I committed the changes in {1f12bf0} to just have text instruction for the boilerplate. I also updated the instructions and added a new test to the challenge {freeCodeCamp/freeCodeCamp/pull/38572}. Let me know if you want to change the github base back to master and then you can set the default accordingly.

@scissorsneedfoodtoo

Copy link
Copy Markdown
Contributor

Hi @jeremyfiel and @ojeytonwilliams, thanks for carrying on the discussion here, too.

@ojeytonwilliams, that's a good point -- I'm not sure if Glitch looks at the repos default branch or not before pulling changes over. It would be nice to switch everything over to the more customary master branch like @jeremyfiel mentioned.

Your cleanup looks good so far. The only thing I'm hesitant to remove is .hyperdev-assets. I created a new Express project on Glitch and exported it as a .zip file. It seems like .hyperdev-assets is now called .glitch-assets. I'm not sure exactly what it's used for, though.

Rather than removing it entirely, perhaps we could just rename it to .glitch-assets for now.

@jeremyfiel

jeremyfiel commented Apr 21, 2020 •

Copy link
Copy Markdown
Contributor Author

Hi @jeremyfiel and @ojeytonwilliams, thanks for carrying on the discussion here, too.

@ojeytonwilliams, that's a good point -- I'm not sure if Glitch looks at the repos default branch or not before pulling changes over. It would be nice to switch everything over to the more customary master branch like @jeremyfiel mentioned.

according to the url they use, it's clone-from-repo and the github URL which points to "default", if it's not specified.
https://glitch.com/edit/#!/remix/clone-from-repo?REPO_URL=https://github.com/freeCodeCamp/boilerplate-advancednode/

Your cleanup looks good so far. The only thing I'm hesitant to remove is .hyperdev-assets. I created a new Express project on Glitch and exported it as a .zip file. It seems like .hyperdev-assets is now called .glitch-assets. I'm not sure exactly what it's used for, though.

Rather than removing it entirely, perhaps we could just rename it to .glitch-assets for now.

These assets are generated by glitch for each exported project. They are the images used on their site like the fish logo and the backgrounds. They are not necessary for the boilerplate to host.

@ojeytonwilliams

Copy link
Copy Markdown

These assets are generated by glitch for each exported project. They are the images used on their site like the fish logo and the backgrounds. They are not necessary for the boilerplate to host.

Yep, if you create a project from a repo that does not have .glitch-assets then that file will be created when you zip up the project.

@jeremyfiel could you remove the merge conflicts? By the way, it should not be necessary to merge locally unless someone has modified code on the remote.

@jeremyfiel

Copy link
Copy Markdown
Contributor Author

@ojeytonwilliams Ok. I think we are set to go now. I removed the merge commit and fixed the conflicts. Don't forget to check if we should change to the master base and set the default.

@ojeytonwilliams ojeytonwilliams left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, reservations about the site hanging notwithstanding.

re: master vs gomix we can just test it to make sure. Merge this into master, change the default branch from gomix to master and immediately try to clone the repo using https://glitch.com/edit/#!/remix/clone-from-repo?REPO_URL=https://github.com/freeCodeCamp/boilerplate-advancednode/ and see which one we get.

Comment thread server.js Resolved
@jeremyfiel
jeremyfiel changed the base branch from gomix to master April 21, 2020 13:17
@ojeytonwilliams

Copy link
Copy Markdown

@jeremyfiel let me clean up the history a bit.

@ojeytonwilliams

Copy link
Copy Markdown

Actually, I just realised this is on your master branch, so I cannot help. So, in order for me to be able to help you can:

git checkout master
git checkout -b fix/update-boilerpate
git push -u origin HEAD

At this point you can create a new PR with that branch and I can clean things up.

… server. fixes {freeCodeCamp/freeCodeCamp/issuse/38404}

Revise server.js to update instructions to match Challenge.md on main repo {freeCodeCamp/freeCodeCamp/pull/38572}
@jeremyfiel

Copy link
Copy Markdown
Contributor Author

Actually, I just realised this is on your master branch, so I cannot help. So, in order for me to be able to help you can:

git checkout master
git checkout -b fix/update-boilerpate
git push -u origin HEAD

At this point you can create a new PR with that branch and I can clean things up.

i fixed her up.

@ojeytonwilliams

Copy link
Copy Markdown

@jeremyfiel Nice one! @scissorsneedfoodtoo I think this is good to go, depending on what you think about what I said regarding testing master.

@scissorsneedfoodtoo

Copy link
Copy Markdown
Contributor

Awesome! Thanks both of you for all of your hard work on this.

@ojeytonwilliams, sure, that sounds like a plan. I don't seem to have access to the settings for the repo now. I'll need to look into that real quick before merging and testing.

@scissorsneedfoodtoo

scissorsneedfoodtoo commented Apr 23, 2020 •

Copy link
Copy Markdown
Contributor

@jeremyfiel and @ojeytonwilliams, thanks again for updating this boilerplate. Got access to the settings on this repo. Will merge and switch the default branch from gomix to master now.

@scissorsneedfoodtoo
scissorsneedfoodtoo merged commit 835383e into freeCodeCamp:master Apr 23, 2020
@scissorsneedfoodtoo

Copy link
Copy Markdown
Contributor

Tested remixing via https://glitch.com/edit/#!/remix/clone-from-repo?REPO_URL=https://github.com/freeCodeCamp/boilerplate-advancednode/ and the Glitch "Clone from Git Repo" option and everything seems to be working!

ojeytonwilliams pushed a commit to freeCodeCamp/freeCodeCamp that referenced this pull request Apr 23, 2020
abbathaw pushed a commit to abbathaw/freeCodeCamp that referenced this pull request Jul 24, 2020
Grayman1 pushed a commit to Grayman1/boilerplate-advancednode that referenced this pull request Apr 19, 2021
 Code Modifications.
All tests PASSED!
Grayman1 pushed a commit to Grayman1/boilerplate-advancednode that referenced this pull request Apr 19, 2021
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

Successfully merging this pull request may close these issues.

5 participants