Clone the project to your local computer
git clone https://github.com/FrithjofThorvik/FullstackTemplate.git
Create & connect to a new GitHub repository
rm -rf .git git init git remote add origin [GitHub Link] git add . git commit -m "First commit" git push origin master
- Create a new project in Heroku
- Choose GitHub as Deployment Method and connect to your GitHub account
- Connect the Heroku project to your repository by entering its name
- Enable automatic deployments to master branch
- In Heroku, head to resources and install ClearDB MySQL
- Connect it to your Heroku appplication
- Head to settings -> Reveal Config Vars -> copy CLEARDB_DATABASE_URL
- Insert these details into server -> configs -> replace all values
- Use MySQLWorkbeng or another software to view database data
ClearDB MySQL Fields: mysql://[username]:[password]@[host]/[database]?reconnect=true
- Enter your heroku url in the .env file in your ./client folder
- Add all env configs to Heroku in Config Vars in settings