Follow these instructions to get the project up and running on your local machine.
- Go installed
- PostgreSQL installed
- Make installed (optional but recommended)
-
Clone the repository:
git clone https://github.com/your-username/your-go-project.git cd your-go-project
-
Copy the
.env.copy
file:cp .env.copy .env
-
Open the
.env
file and update theDB_URL
with your database connection details, including username and password.
If you have Make installed, you can use the provided Makefile to simplify the process.
-
Open the Makefile and add your database URL or change upon your requirements
-
Run the migration:
make migrate
-
Start the project:
make start
The project should now be running locally.