mirror of
https://github.com/Ategon/Jamjar.git
synced 2025-02-12 06:16:21 +00:00
Compare commits
7 commits
e0091af825
...
68e4fb7a71
Author | SHA1 | Date | |
---|---|---|---|
![]() |
68e4fb7a71 | ||
![]() |
c204a54815 | ||
![]() |
2b3d1f08fa | ||
![]() |
3b0d74f21f | ||
![]() |
126826b749 | ||
![]() |
fe3ac9d48a | ||
![]() |
9d457750db |
7 changed files with 40 additions and 4 deletions
3
.dockerignore
Normal file
3
.dockerignore
Normal file
|
@ -0,0 +1,3 @@
|
|||
.next
|
||||
node_modules
|
||||
|
13
Dockerfile
Normal file
13
Dockerfile
Normal file
|
@ -0,0 +1,13 @@
|
|||
FROM node:18-alpine
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
COPY package*.json ./
|
||||
RUN npm install
|
||||
|
||||
COPY . .
|
||||
RUN npm run build
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
CMD ["npm", "start"]
|
13
README.md
13
README.md
|
@ -2,4 +2,15 @@
|
|||
|
||||
Frontend for a game jam site
|
||||
|
||||
Under construction currently, I just quickly slapped together a splash page in 30 mins to show instead of the usual site progress and it will slowly get added back and polished over time
|
||||
To run using next.js (for development)
|
||||
|
||||
```
|
||||
npm i
|
||||
npm run dev
|
||||
```
|
||||
|
||||
To run using docker and docker compose
|
||||
|
||||
```
|
||||
docker compose up --build -d
|
||||
```
|
||||
|
|
9
docker-compose.yml
Normal file
9
docker-compose.yml
Normal file
|
@ -0,0 +1,9 @@
|
|||
version: "3.8"
|
||||
services:
|
||||
nextjs-app:
|
||||
build:
|
||||
context: .
|
||||
ports:
|
||||
- "127.0.0.1:3004:3000"
|
||||
environment:
|
||||
NODE_ENV: production
|
|
@ -21,7 +21,7 @@ export default function Navbar() {
|
|||
href="/"
|
||||
className="duration-500 ease-in-out transition-all transform hover:scale-110"
|
||||
>
|
||||
<Image src="/images/edikoyo.png" width={160} />
|
||||
<Image src="/images/edikoyo.png" alt="Edikoyo logo" width={160} />
|
||||
</Link>
|
||||
</NavbarBrand>
|
||||
<NavbarContent>
|
||||
|
|
|
@ -9,7 +9,7 @@ export default function Posts() {
|
|||
|
||||
useEffect(() => {
|
||||
const fetchPosts = async () => {
|
||||
const response = await fetch("http://localhost:3005/api/v1/posts");
|
||||
const response = await fetch("https://jam.edikoyo.com/api/v1/posts");
|
||||
setPosts(await response.json());
|
||||
};
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ export default function Timer({
|
|||
name,
|
||||
targetDate,
|
||||
}: {
|
||||
name: String;
|
||||
name: string;
|
||||
targetDate: Date;
|
||||
}) {
|
||||
const [timeLeft, setTimeLeft] = useState(targetDate.getTime() - Date.now());
|
||||
|
|
Loading…
Reference in a new issue