Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
e57ce34
Start commit
Aug 30, 2024
328abd9
annie
Sep 4, 2024
fd1067d
Annita header1
Anni-star261 Sep 4, 2024
d40aad4
header 1
Anni-star261 Sep 4, 2024
f9a410a
added images
Anni-star261 Sep 4, 2024
c335a3c
added the logo, location and the copyright
Anni-star261 Sep 4, 2024
7df9161
still editing
maggie277 Sep 9, 2024
7e379cb
Edited the services
maggie277 Sep 11, 2024
4292a74
done
maggie277 Sep 12, 2024
20a046f
done
maggie277 Sep 12, 2024
6140d55
maggie
Sep 18, 2024
97c819d
Merge branch 'witty-foods' of https://github.com/Thee23rd/zikos into …
Sep 18, 2024
040c7b0
added server code
Dali125 Nov 25, 2024
ae364ce
added navnbar component
Dali125 Nov 27, 2024
6e6b7a9
Picture function Added
Dali125 Dec 8, 2024
143d8f2
added ignore
Dali125 Dec 8, 2024
410d99b
added navbar icons
Dali125 Dec 9, 2024
ffed1d1
Added nav icons
Dali125 Dec 9, 2024
291bd50
Added Authentication , about 65% complete(Registration UI not created,
Dali125 Dec 16, 2024
ab82535
sample
Thee23rd Dec 17, 2024
d4deb8a
Merge branch 'witty-foods' of https://github.com/Thee23rd/zikos into …
Thee23rd Dec 17, 2024
5122bd6
added loading state for pictures
Dali125 Dec 19, 2024
c6edee7
Merge branch 'witty-foods' of https://github.com/Thee23rd/zikos into …
Dali125 Dec 24, 2024
19bcea6
Merge branch 'witty-foods' of https://github.com/Thee23rd/zikos into …
Dali125 Feb 13, 2025
cc13513
yeeeh
Thee23rd Feb 14, 2025
d759954
Modified Dashboard
Dali125 Mar 7, 2025
fff8030
Dashboard mod
Dali125 Mar 7, 2025
0ee44e0
Merge branch 'witty-foods' of https://github.com/Thee23rd/zikos into …
Dali125 Mar 7, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
JWT_SECRET="yffghfhgdgfdrtvkbhj"
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/videos/*
.env
8 changes: 8 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions .idea/zikos.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

65 changes: 65 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
ARG GO_VERSION=1.22.5
FROM --platform=$BUILDPLATFORM golang:${GO_VERSION} AS build
WORKDIR /src


COPY . .

RUN go mod download -x

ARG TARGETARCH


# Build the Go application
RUN CGO_ENABLED=0 GOARCH=$TARGETARCH go build -o /bin/server .


FROM alpine:latest AS final


# Install runtime dependencies
RUN apk --update add \
ca-certificates \
tzdata \
&& \
update-ca-certificates


# Create non-privileged user
ARG UID=10001
RUN adduser \
--disabled-password \
--gecos "" \
--home "/nonexistent" \
--shell "/sbin/nologin" \
--no-create-home \
--uid "${UID}" \
appuser





RUN apk add --no-cache gcc g++ git openssh-client
RUN GO111MODULE=on CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-w -s" -o server
# Set the working directory to /app
WORKDIR /app

# Copy the executable from the build stage
COPY --from=build /bin/server /bin/

# Copy the frontend directory from the build stage
COPY --from=build /src/videos /app/videos

# Ensure the appuser has ownership of the frontend directory
RUN chown -R appuser:appuser /app/videos

# Set the user to the non-privileged user
USER appuser

# Expose the port the app runs on
EXPOSE 4000

# Start the application
ENTRYPOINT [ "/bin/server" ]

54 changes: 0 additions & 54 deletions README.md

This file was deleted.

8 changes: 7 additions & 1 deletion assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ body.nav-active { overflow: hidden; }
.section-subtitle::after {
content: url('../images/separator.svg');
display: block;
width: 100px;
width: 100px;
margin-inline: auto;
margin-block-start: 5px;
}
Expand All @@ -344,6 +344,12 @@ body.nav-active { overflow: hidden; }
z-index: 1;
}

.text-gold-crayola{

background-color: var(--gold-crayola);
color: var(--gold-crayola);
}

.btn::before {
content: "";
position: absolute;
Expand Down
Binary file removed assets/images/Thumbs.db
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/chefs.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/foodtaste.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/serving.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/witty.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion assets/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,5 +166,6 @@ window.addEventListener("mousemove", function (event) {
y = y * Number(parallaxItems[i].dataset.parallaxSpeed);
parallaxItems[i].style.transform = `translate3d(${x}px, ${y}px, 0px)`;
}


});
});
20 changes: 20 additions & 0 deletions backend/apis/admin_apis.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package apis

import (
"database/sql"
"net/http"

"github.com/gin-gonic/gin"
_ "github.com/lib/pq"
)

func AdminApis(r *gin.Engine, db *sql.DB) error {

var err error

http.HandleFunc("/admin/login", func(w http.ResponseWriter, r *http.Request) {

http.ServeFile(w, r, "login.html")
})
return err
}
Loading