-
Download this archive as
.zip
or.tar.gz
(whatever you prefer) -
Extract the downloaded archive to a directory of your choice and remove the parent folders which may have been created during the download
-
Make sure that your folder now contains at least the following file structure:
βββ globals β βββ connections.go (contains globally available connections) β βββ variables.go (contains globally available variables) βββ resources β βββ authConfig.json (contains auth config) β βββ environment.json (contains the environment setup) β βββ errors.json (contains http errors) β βββ queries.sql (contains sql queries for the service) βββ routes β βββ templates.go (contains three template routes) βββ .gitignore βββ init.go (contains code used during startup) βββ template-service.go (contains the bootstrapping code for the service) βββ go.mod (contains the dependencies of the service) βββ go.sum (is the lockfile for the dependencies)
-
Important Change the service name
To change the service name, you need to edit the file
globals/variables.go
which should contain the following lineconst ServiceName = "template-service"
This line needs to be changed to your service name. This constant is used in logs and error handling to identify the service.
-
Initialize a Git Repository with
main
as default branchgit init -b main
-
Add all files to the repository
git add -A
-
Commit the template to the repository
git commit -m "loading wisdom-oss/microservice-template"
-
Set up a remote origin for the repository
git remote add origin <your-remote-url>
-
Push the repository to the remote origin
git push origin main
-
π You are now able to develop your new microservice
-
Change the README to the contents you desire in here
generated from wisdom-oss/microservice-template
-
Notifications
You must be signed in to change notification settings - Fork 0
wisdom-oss/service-groundwater-levels
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Β | Β | |||
Β | Β | |||
Β | Β | |||
Β | Β | |||
Β | Β | |||
Β | Β | |||
Β | Β | |||
Β | Β | |||
Β | Β | |||
Β | Β | |||
Β | Β | |||
Β | Β | |||
Repository files navigation
About
π read collected water levels
Resources
Stars
Watchers
Forks
Releases
No releases published