How to use docker and test API endpoints #70
miguel-merlin
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Using docker
Make sure you have docker installed. You can verify this by running
If you don't have docker installed, you can download it here:
mac
windows
Make sure you have the most up-to-date version of the codebase. In the root directory of the repo, run:
To initialize the docker container, run
After running the previous command, you should see this message:
If you see this message, you have successfully started docker. Now you have an instance of Postgres running in your local. The docker-compose runs an SQL script that initializes the database with default data. The script creates the tables specified in #30.
localhost:3000/api/{name_of_endpoint}Beta Was this translation helpful? Give feedback.
All reactions