- Requirements
- Starting a new Project.
- Building the Project
- Running the Build
- Getting Started for Real
- Using entr as an auto-building tool - For Fedora Linux - For Debian/Ubuntu based Linux - for MacOS use Homebrew
to get Started your System must have access to the following commands at minimum.
make
go
The Project uses make
as its Build-System
1.) You can either copy the contents of this repos
project-template -Folder or download the
project-template.tar.gz
from the
Releases-Section
2.) Either way, extract the content of that folder into your project folder
3.) Run the make setup
command inside your project folder. This will download
the required packages
To build the project, simply run make
, that is all.
The results will be built into the ./docs
-folder inside your project folder.
To run it, simply host the build, in any way you like. The template comes with a
small Server-Script, that can be used for development. It will host the files
via http
on port 7353
of your system.
You can run that script either via.
go run ./.tools/server/server.go
and then opening any Browser and navigating to http://localhost:7353
should be
fine.
Alternatively, you can use the
make open
command to open the URL in your Default Browser
The default project template comes with some demo code, to check if the build was successful. To clear it and make room for your own code you can run the
make reset
command to clear everything and revert the Project-Template to a completely blank (yet still working) state.
Now your blank slate is ready.
If you have entr
as an available shell command, you can use the,
following make
tasks/commands in addition
#To Start the file watcher and automatically rebuild the project,
# when files using it change
make dev
To install entr use:
dnf install entr
apt install entr
brew install entr