Skip to content

Commit

Permalink
feat(tutorials): add Next.js x Serverless SQL DB tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
SamyOubouaziz committed Mar 14, 2024
1 parent eede0dc commit 69cbbce
Show file tree
Hide file tree
Showing 70 changed files with 4,947 additions and 0 deletions.
Binary file not shown.
34 changes: 34 additions & 0 deletions projects/tutorial-sdb-nextjs-terraform/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# dependencies
/node_modules
/.pnp
.pnp.js
.yarn/install-state.gz

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# local env files
.env*.local

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts
20 changes: 20 additions & 0 deletions projects/tutorial-sdb-nextjs-terraform/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# syntax=docker/dockerfile:1

FROM node:20-alpine

WORKDIR /usr/app
COPY ./ ./
RUN npm install
RUN npm run build

#Web application configuration
ENV PORT=8080

#Database configuration used for dynamically rendered data
ENV PGHOST=localhost
ENV PGPORT=5432
ENV PGDATABASE=database
ENV PGUSER=user
ENV PGPASSWORD=password

CMD npm run start
881 changes: 881 additions & 0 deletions projects/tutorial-sdb-nextjs-terraform/README.md

Large diffs are not rendered by default.

Loading

0 comments on commit 69cbbce

Please sign in to comment.