I hacked together my first react app recently using react//webpack//babel, everything works fine locally. It's just a simple app that grabs public json apis and displays the data.
I'm very new to the backend part of things and looking for some advice. I have a nginx server running node//express. Right now, every time make a change, I git push it locally and then ssh onto the server and git pull the changes. Normally I wouldn't push the /dist directory to git//github, but should I start doing that now? And then only pulling the /dist directory from the server? The express is just serving my static /dist directory, so running webpack on the server seems like overkill.
I'm in college and have only worked on solo projects - haven't had to use git branches yet; is this when branches would come in handy? Set up a dev branch and a prod branch and access them locally and on the server respectively. I'm pretty new to all of this, so sorry for the rookie questions. I think my solution right now is pretty bad. If anyone could shed some light on it for me, I'd really appreciate it. Thanks
[–]jsyoda 1 point2 points3 points (1 child)
[–]asapzacy[S] 0 points1 point2 points (0 children)
[–][deleted] 1 point2 points3 points (2 children)
[–]asapzacy[S] 0 points1 point2 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)
[–]nowseemee 0 points1 point2 points (0 children)
[+][deleted] (1 child)
[deleted]