wisee backend
Setup
To setup this project, you need to install the following tools:
Windows
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
Development Setup
-
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.
Creating a production build
To create a production build, run the following command:
make build
This will create a executable file in the bin folder.
Migrations
Migrations are handled using golang-migrate, read the docs for more information on working with migrations.
Database
Connecting to the database
-
Visit http://localhost:54321 in your browser and login with the following credentials:
- Email :
default@wisee.com
- Password :
default
-
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

-
Click on the Save button. You should now be able to see the server and associated databases in the left sidebar.
