Skip to content

Commit

Permalink
Frontend and backend setup
Browse files Browse the repository at this point in the history
Add example project for CI/CD deployment
  • Loading branch information
friezzerr authored and frieZZerr committed Jun 3, 2024
0 parents commit 0fd4864
Show file tree
Hide file tree
Showing 38 changed files with 34,773 additions and 0 deletions.
23 changes: 23 additions & 0 deletions project_10/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
23 changes: 23 additions & 0 deletions project_10/client/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
23 changes: 23 additions & 0 deletions project_10/client/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Use a base image with Node.js
FROM node:14

# Set the working directory
WORKDIR /usr/src/app

# Copy package.json and package-lock.json
COPY package*.json ./

# Install dependencies
RUN npm install

# Rebuild native modules
RUN npm rebuild

# Copy the rest of the application code
COPY . .

# Expose the port the app runs on
EXPOSE 3000

# Command to run the app
CMD ["npm", "start"]
Loading

0 comments on commit 0fd4864

Please sign in to comment.