Compare commits
2 Commits
c5358e6c50
...
ac20f9172d
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ac20f9172d | ||
|
|
b96f65c294 |
@@ -20,7 +20,7 @@ A simple, lightweight web application for managing user profile photos in a Free
|
|||||||
1. **Clone the Repository**
|
1. **Clone the Repository**
|
||||||
```bash
|
```bash
|
||||||
git clone https://git.astraltech.xyz/gawells/Self-Service-Dashboard
|
git clone https://git.astraltech.xyz/gawells/Self-Service-Dashboard
|
||||||
cd account-manager
|
cd Self-Service-Dashboard
|
||||||
```
|
```
|
||||||
|
|
||||||
2. **Configure the Application**
|
2. **Configure the Application**
|
||||||
@@ -39,7 +39,7 @@ A simple, lightweight web application for managing user profile photos in a Free
|
|||||||
|
|
||||||
5. **Run the Server**
|
5. **Run the Server**
|
||||||
```bash
|
```bash
|
||||||
go run src/*.go
|
go run ./src/main/
|
||||||
```
|
```
|
||||||
The application will be available at `http://<host>:<port>`.
|
The application will be available at `http://<host>:<port>`.
|
||||||
|
|
||||||
|
|||||||
7
src/logging/logging.go
Normal file
7
src/logging/logging.go
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
package logging
|
||||||
|
|
||||||
|
import "log"
|
||||||
|
|
||||||
|
func Info(message string) {
|
||||||
|
log.Print(message)
|
||||||
|
}
|
||||||
@@ -11,6 +11,8 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"astraltech.xyz/accountmanager/src/logging"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
@@ -306,6 +308,8 @@ func cleanupSessions() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
logging.Info("Starting the server")
|
||||||
|
|
||||||
var err error = nil
|
var err error = nil
|
||||||
|
|
||||||
blankPhotoData, err = os.ReadFile("static/blank_profile.jpg")
|
blankPhotoData, err = os.ReadFile("static/blank_profile.jpg")
|
||||||
Reference in New Issue
Block a user