To setup this project, you need to install the following tools:
Skip this step if you are running the project in a Unix based system or have
make
already installed.
We use the make
command to run different scripts in the project. Install make
command from here
-
Once you have installed the above tools, clone the repository and navigate to the project folder.
-
To setup the project, run the following command:
make setup
- If the above command runs successfully, you can start the development server by running the following command:
make watch
To check if the server is running, navigate to http://localhost:8080/health
in your browser.
To create a production build, run the following command:
make build
This will create a executable file in the bin
folder.
Migrations are handled using golang-migrate, read the docs for more information on working with migrations.
-
Visit
http://localhost:54321
in your browser and login with the following credentials:- Email :
default@wisee.com
- Password :
default
- Email :
-
If you do have server created already, create a new server by clicking on the
Add New Server
button. -
Enter the server name
-
Enter the connection details
- Hostname/Address :
pg_db
- Port :
5432
- Username :
postgres
- Password :
postgres
- Hostname/Address :
-
Click on the
Save
button. You should now be able to see the server and associated databases in the left sidebar.