-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cleanup: fix sqlx warning, all c.String -> c.JSON, debug logout, etc.
- Loading branch information
Showing
10 changed files
with
136 additions
and
175 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,36 @@ | ||
# The backend for slugquest | ||
# The backend for SlugQuest | ||
|
||
## Resources | ||
|
||
* [Go Website](https://go.dev/) | ||
|
||
## Commands | ||
## Running the server | ||
|
||
The server can be compiled into an executable and ran locally: | ||
```bash | ||
# Run the program | ||
go run main.go | ||
# Compile into an executable | ||
go build -o server | ||
./server | ||
``` | ||
|
||
## Nix | ||
|
||
An easy way to develop and run | ||
|
||
Install from [here](https://nixos.org/download#nix-install-linux) | ||
An easy way to develop and run. Install from [here](https://nixos.org/download#nix-install-linux). | ||
|
||
Set up flakes with: | ||
```bash | ||
mkdir ~/.config/nix | ||
echo "experimental-features = nix-command flakes" > ~/.config/nix/nix.conf | ||
``` | ||
|
||
Commands: | ||
### Commands: | ||
```bash | ||
# Get a development sheel | ||
# Get a development shell | ||
nix develop | ||
|
||
# Build the program | ||
nix build | ||
|
||
# Run the program | ||
nix run | ||
``` | ||
|
||
## Resources | ||
|
||
* [Go Website](https://go.dev/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.