Skip to content

Commit

Permalink
Merge pull request #2 from iamtatsuki05/develop
Browse files Browse the repository at this point in the history
deploy update env
  • Loading branch information
iamtatsuki05 authored Jun 16, 2024
2 parents 3a35709 + af37add commit 1ac7745
Show file tree
Hide file tree
Showing 17 changed files with 5,216 additions and 14,967 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Check format.
on:
pull_request:
branches:
- '**'
workflow_call:
inputs:
check-service-test:
required: false
default: false
type: boolean
jobs:
run_test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '20.x'

- name: Install Dependencies
run: |
npm install
- name: Run linter
run: |
npm run lint
- name: Run test
run: |
npm run test
24 changes: 23 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,23 @@
node_modules
# 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*
10 changes: 10 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
node_modules
.vscode/*
*.yml
build
dist
dist-ssr
*.local
logs
*.log
.DS_Store
6 changes: 6 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"trailingComma": "es5",
"tabWidth": 2,
"semi": false,
"singleQuote": true
}
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
Follow these steps to set up the React template:

1. **Clone the repository:**
`git clone https://github.com/iamtatsuki05/react_template.git`
`git clone https://github.com/iamtatsuki05/react_template.git`

2. **Navigate to the working directory:**
`cd react_template`
`cd react_template`

3. **Build the project:**
`docker-compose up -d --build`
`docker-compose up -d --build`

4. **Access the application:**
Open your browser and visit [http://localhost:3000/](http://localhost:3000/)
Open your browser and visit [http://localhost:3000/](http://localhost:3000/)
2 changes: 1 addition & 1 deletion compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ services:
app:
build:
context: .
dockerfile: Dockerfile
dockerfile: docker/Dockerfile
args:
progress: plain
volumes:
Expand Down
5 changes: 3 additions & 2 deletions Dockerfile → docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ RUN apt-get update && \
zip unzip \
curl wget gnupg file tree \
sudo && \
curl -sL https://deb.nodesource.com/setup_16.x | bash - && \
curl -sL https://deb.nodesource.com/setup_20.x | bash - && \
apt-get install -y nodejs && \
apt-get install -y build-essential && \
apt-get clean && \
Expand All @@ -23,6 +23,7 @@ RUN mkdir /app

WORKDIR /app

COPY . /app
COPY ./package.json ./package-lock.json .
COPY ./src .

RUN npm install
15 changes: 15 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import globals from 'globals'
import pluginJs from '@eslint/js'
import tseslint from 'typescript-eslint'
import pluginReactConfig from 'eslint-plugin-react/configs/recommended.js'

export default [
{ languageOptions: { globals: { ...globals.browser, ...globals.node } } },
pluginJs.configs.recommended,
...tseslint.configs.recommended,
{
files: ['**/*.jsx'],
languageOptions: { parserOptions: { ecmaFeatures: { jsx: true } } },
},
pluginReactConfig,
]
Loading

0 comments on commit 1ac7745

Please sign in to comment.