generated from kir-dev/next-nest-template
-
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.
* fixed gitignore * added docker * adjustments
- Loading branch information
Showing
15 changed files
with
148 additions
and
37 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 |
---|---|---|
|
@@ -5,3 +5,4 @@ npm-debug.log* | |
yarn-debug.log* | ||
yarn-error.log* | ||
.DS_Store | ||
.env |
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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Stage 1: Build the application | ||
# Use the official Node.js LTS (Long Term Support) image as the base image | ||
FROM node:20-alpine AS build | ||
ENV NODE_ENV=development | ||
|
||
# Set the working directory inside the container | ||
WORKDIR /app | ||
|
||
# Copy package.json and yarn.lock to the container | ||
COPY package.json ./ | ||
|
||
# Install the project dependencies using Yarn | ||
RUN yarn install | ||
COPY . . | ||
RUN yarn prisma generate | ||
|
||
# Copy the rest of the project files to the container | ||
|
||
# Build the NestJS application | ||
RUN yarn build | ||
|
||
# Stage 2: Create a lightweight container with the built application | ||
FROM node:20-alpine AS production | ||
ENV NODE_ENV=production | ||
|
||
# Set the working directory inside the container | ||
WORKDIR /app | ||
|
||
# Copy the built application from the previous stage | ||
COPY --from=build /app/dist ./dist | ||
COPY --from=build /app/package.json ./package.json | ||
COPY --from=build /app/yarn.lock ./yarn.lock | ||
COPY --from=build /app/prisma ./prisma | ||
|
||
# Install only production dependencies | ||
RUN yarn install --production --frozen-lockfile | ||
RUN yarn prisma generate | ||
|
||
# Command to run the application | ||
CMD ["node", "dist/main"] |
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: sprint-review | ||
|
||
services: | ||
app: | ||
build: | ||
context: . | ||
ports: | ||
- '${BACKEND_PORT}:${BACKEND_PORT}' | ||
env_file: | ||
- .env | ||
restart: always | ||
networks: | ||
- sprint-review-network | ||
depends_on: | ||
- db | ||
|
||
db: | ||
image: postgres:13.10 | ||
env_file: | ||
- .env | ||
restart: always | ||
volumes: | ||
- sprint-review_db_folder:/var/lib/postgresql/data | ||
networks: | ||
- sprint-review-network | ||
|
||
volumes: | ||
sprint-review_db_folder: | ||
external: true | ||
|
||
networks: | ||
sprint-review-network: |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,5 @@ | ||
import SprintLogin from '../../../components/NewProject'; | ||
import NewProject from '../../../components/NewProject'; | ||
|
||
export default function Home() { | ||
return ( | ||
<main className='flex items-center justify-center bg-page-bg-color'> | ||
<SprintLogin /> | ||
</main> | ||
); | ||
return <NewProject />; | ||
} |
2 changes: 1 addition & 1 deletion
2
...src/app/(with-layout)/afterlogin/page.tsx → apps/frontend/src/app/afterlogin/page.tsx
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
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
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,7 +1,7 @@ | ||
export function Footer() { | ||
return ( | ||
<footer className='bg-page-bg-color flex flex-col items-center justify-center'> | ||
<p className='text-gray-500 text-sm'>@Kir-Dev pod-oscar</p> | ||
<footer className='bg-page-bg-color flex items-center justify-center'> | ||
<p className='text-gray-500 text-sm mb-8'>@Kir-Dev pod-oscar</p> | ||
</footer> | ||
); | ||
} |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export default function Section({ | ||
children, | ||
}: Readonly<{ | ||
children: React.ReactNode; | ||
}>) { | ||
return <main className='flex-1 items-center justify-center bg-page-bg-color'>{children}</main>; | ||
} |
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