This is a template for creating a new Go application made by the Nethermind Angkor team.
To create a new repository from this template you can use the Github UI. See the Github documentation for more information about creating a repository from a template.
After cloning this repository you need to set up the Go module of the project and the app name. To do that follow the steps below:
-
Initialize Go module with the following command:
go mod init [module-name]
The module-name could be for instance
github.com/NethermindEth/project-name. -
Run the
go mod tidycommand to download dependencies. Also you can use themake gomod_tidycommand. -
Rename the
cmd/appdirectory to the name of your application. -
Set the
APP_NAMEvalue in the .env and in the Dockerfile to the name of your application. Make sure is the same name as the directory you renamed in the previous step. -
Replace the
<repo>value in the CONTRIBUTING.md file with url of your repository to make the links work. -
Replace the
<APP_NAME>value in the CONTRIBUTING.md file with the name of your application. -
Check
CODEOWNERSfile, currently is an example file and should be updated. You can find it in the.githubdirectory. Also, see this GitHub documentation aboutCODEOWNERSfile.
Inside the docs directory you can find a Docusaurus project with the initial structure
for the documentation, read the README.md file inside the directory for
more information, also you can read the Docusaurus documentation.
This template has a set of Github Actions workflows that can be used to automate the CI/CD process of your application. The workflows are located in the .github/workflows directory.
- Support devcontainer
- Template for debian package (for PPA)