Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ngyngcphu committed Sep 13, 2023
0 parents commit 0d8ae93
Show file tree
Hide file tree
Showing 68 changed files with 8,784 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .barrelsby.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"directory": [
"./src/components",
"./src/constants",
"./src/hooks",
"./src/interfaces",
"./src/layouts",
"./src/pages",
"./src/services",
"./src/states",
"./src/utils"
],
"delete": true
}
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
VITE_BACKEND_URL=
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
dist
node_modules
26 changes: 26 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"parser": "@typescript-eslint/parser",
"extends": [
"prettier",
"plugin:@typescript-eslint/recommended",
"plugin:react-hooks/recommended"
],
"plugins": [
"@typescript-eslint"
],
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module",
"project": "./tsconfig.json"
},
"env": {
"node": true,
"es6": true
},
"rules": {
"@typescript-eslint/no-inferrable-types": 0,
"@typescript-eslint/no-unused-vars": 2,
"@typescript-eslint/no-var-requires": 0,
"eqeqeq": "error"
}
}
28 changes: 28 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

# Ignore env
.env*
!.env.example
4 changes: 4 additions & 0 deletions .husky/post-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

git update-index --again
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

yarn lint-staged
4 changes: 4 additions & 0 deletions .lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"**/*.{ts,js,tsx}": ["eslint --fix"],
"**/*.{tsx,ts,js,json,md,yml,yaml}": ["prettier --write"]
}
6 changes: 6 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
dist
node_modules
package*.json
*.lock
*.yml
*.md
10 changes: 10 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"printWidth": 100,
"singleQuote": true,
"jsxSingleQuote": true,
"semi": true,
"tabWidth": 2,
"bracketSpacing": true,
"arrowParens": "always",
"trailingComma": "none"
}
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# React + TypeScript + Vite

```py
📦public # Only contain vite.svg, do not care about this folder.
┣ 📜vite.svg
📦src
┣ 📂assets # All assets such as jpg, svg, icon ... goes here.
┣ 📜App.tsx # App component.
┣ 📜index.css # CSS element for global elements.
┣ 📜main.tsx # Program entry.
┣ 📜vite-env.d.ts # Define the types for environment-related values.
┣ .gitignore
┣ index.html
┣ package.json
README.md
┣ tsconfig.json # TypeScript configuration file for project.
┣ tsconfig.node.json # TypeScript configuration file specifically tailored for Node.js
┣ vite.config.ts # Configuration file specific to Vite.js
```
12 changes: 12 additions & 0 deletions __mock_server__/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# syntax=docker/dockerfile:1
FROM node:18-alpine

WORKDIR /tickflow-mockserver

COPY package.json ./

RUN npm install --production

COPY . .

CMD ["npm", "start"]
Loading

0 comments on commit 0d8ae93

Please sign in to comment.