This is a simple starter next app that talks to a local postgres database.
This runs within docker-compose. Make sure you have both docker and docker-compose installed. See Installing Docker.
docker-compose will likely be installed with the above steps but if not, check Installing Docker Compose.
To run, simply execute docker-compose up. This will create your environment and you can access the next app at http://localhost:3000.
If you'd like to delete your work in the DB, you can run make clean. NOTE: This will delete everything in the database and will require you to run your migrations and create data again. use with caution!
You can find the commands for using sequelize migrations. Ensure you run this command from within the nextjs folder.
From the base folder, run make migrate
From the base folder, run make migrate/down