-
Notifications
You must be signed in to change notification settings - Fork 26
Deploy your own instance
Jay edited this page Dec 9, 2021
·
3 revisions
-
Download and install Golang (here). Make sure it's added to your environment path.
-
Clone the repository....
git clone https://github.com/jayluxferro/GhanaPostGPS-REST-API.git ghanapostgps
- Install dependencies.
cd ghanapostgps
go mod vendor
- Run in development mode
./dev
- Run in live mode
./live
NB:
-
Default port is
5001
. Modify the 'run' scripts to change the default port. The API documentation is the same; replace the hostname with your instance's. -
The default API keys are stored in the
.env
file. You can generate new keys here.
-
Clone the project.
-
Create a new heroku project and add its git URL. Example is shown below:
git remote add heroku https://myproject.heroku.git
- Push to the heroku instance.
git push heroku master