Thank you for choosing Buffalo for your web development needs.
The following are instructions for using the Postgres Docker image for your local dev needs.
docker pull postgres:12
docker run --name buffalo-todo-db -e POSTGRES_DB=buffalo-todo-db -e POSTGRES_USER=buffalo-todo-user -e POSTGRES_PASSWORD=$BUFFALO_TODO_DB_PASSWORD -d -p 15432:5432 postgres:12
Note that the database password should be put in a .env
file like this,
BUFFALO_TODO_DB_PASSWORD=my_super_cool_password
Buffalo ships with a command that will watch your application and automatically rebuild the Go binary and any assets for you. To do that run the "buffalo dev" command:
buffalo dev
If you point your browser to http://127.0.0.1:3000 you should see a "Welcome to Buffalo!" page.
Congratulations! You now have your Buffalo application up and running.
We recommend you heading over to http://gobuffalo.io and reviewing all of the great documentation there.
Good luck!