Let’s call it example_app for easy reference. Creating the Project Folder, Initialising a Git Repo and npmįirst, create your project folder. You may already have this setup, or be able to restructure your app to match, but if you’re starting from scratch or want to follow along then I’ll take you through the steps to get there. It will end up looking something like this: /client # React files in here We’re going to have one Git repo managing both, as well as a shared package.json at the root. We’re going to have our React front-end in its own directory, as well as our Node/Express server. In this guide, we’re going to use a specific setup and so some of the steps may change if your project folders look different (for instance, you may need to change the path to a given directory or file). Create your table in the Heroku Postgres database.Provisioning a Postgres database on Heroku.And because of the pain, I thought I best make a record of exactly how I made it happen and sharing it on here may help others, like you! To say it was painful would be an understatement, but with some perseverance and soooo many browser tabs of Stack Overflow, I managed to do it. It was straightforward enough, but the idea of hosting part of the app in one place and the other part in another felt a bit odd so I set off on a mission to get both parts of a simplified PERN stack app hosted in the same place (Heroku). After creating the Full Stack To Do app recently, I wanted to deploy it and ended up going with GitHub Pages for the front-end and Heroku for the back-end.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |