Skip to content

Commit 6e5e736

Browse files
committed
initial commit
0 parents  commit 6e5e736

37 files changed

+9588
-0
lines changed

.gitignore

+130
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,130 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
lerna-debug.log*
8+
.pnpm-debug.log*
9+
10+
# Diagnostic reports (https://nodejs.org/api/report.html)
11+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
12+
13+
# Runtime data
14+
pids
15+
*.pid
16+
*.seed
17+
*.pid.lock
18+
19+
# Directory for instrumented libs generated by jscoverage/JSCover
20+
lib-cov
21+
22+
# Coverage directory used by tools like istanbul
23+
coverage
24+
*.lcov
25+
26+
# nyc test coverage
27+
.nyc_output
28+
29+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
30+
.grunt
31+
32+
# Bower dependency directory (https://bower.io/)
33+
bower_components
34+
35+
# node-waf configuration
36+
.lock-wscript
37+
38+
# Compiled binary addons (https://nodejs.org/api/addons.html)
39+
build/Release
40+
41+
# Dependency directories
42+
node_modules/
43+
jspm_packages/
44+
45+
# Snowpack dependency directory (https://snowpack.dev/)
46+
web_modules/
47+
48+
# TypeScript cache
49+
*.tsbuildinfo
50+
51+
# Optional npm cache directory
52+
.npm
53+
54+
# Optional eslint cache
55+
.eslintcache
56+
57+
# Optional stylelint cache
58+
.stylelintcache
59+
60+
# Microbundle cache
61+
.rpt2_cache/
62+
.rts2_cache_cjs/
63+
.rts2_cache_es/
64+
.rts2_cache_umd/
65+
66+
# Optional REPL history
67+
.node_repl_history
68+
69+
# Output of 'npm pack'
70+
*.tgz
71+
72+
# Yarn Integrity file
73+
.yarn-integrity
74+
75+
# dotenv environment variable files
76+
.env
77+
.env.development.local
78+
.env.test.local
79+
.env.production.local
80+
.env.local
81+
82+
# parcel-bundler cache (https://parceljs.org/)
83+
.cache
84+
.parcel-cache
85+
86+
# Next.js build output
87+
.next
88+
out
89+
90+
# Nuxt.js build / generate output
91+
.nuxt
92+
dist
93+
94+
# Gatsby files
95+
.cache/
96+
# Comment in the public line in if your project uses Gatsby and not Next.js
97+
# https://nextjs.org/blog/next-9-1#public-directory-support
98+
# public
99+
100+
# vuepress build output
101+
.vuepress/dist
102+
103+
# vuepress v2.x temp and cache directory
104+
.temp
105+
.cache
106+
107+
# Docusaurus cache and generated files
108+
.docusaurus
109+
110+
# Serverless directories
111+
.serverless/
112+
113+
# FuseBox cache
114+
.fusebox/
115+
116+
# DynamoDB Local files
117+
.dynamodb/
118+
119+
# TernJS port file
120+
.tern-port
121+
122+
# Stores VSCode versions used for testing VSCode extensions
123+
.vscode-test
124+
125+
# yarn v2
126+
.yarn/cache
127+
.yarn/unplugged
128+
.yarn/build-state.yml
129+
.yarn/install-state.gz
130+
.pnp.*

Dockerfile

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# syntax=docker/dockerfile:1
2+
# docker image directive
3+
4+
# Node.js v20
5+
FROM node:20-alpine
6+
7+
# create /app directory
8+
WORKDIR /app
9+
10+
# install git
11+
RUN apk add --no-cache git
12+
13+
# clone repo
14+
ARG REPO_URL
15+
RUN git clone https://github.com/Xanazf/gotonic-test.git .
16+
17+
# install deps and build
18+
RUN yarn install && yarn cache clean && yarn build
19+
20+
# frontend port
21+
EXPOSE 3000
22+
23+
# backend port
24+
EXPOSE 5000
25+
26+
# run
27+
CMD ["npm", "run", "start"]

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2024 Xanazf
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Vite/NextUI and Express/SQLite3/Sequelize (ViNESS) Full Stack Template
2+
3+
## Install dependencies
4+
5+
```sh
6+
npm install
7+
# or
8+
yarn install
9+
```
10+
11+
## Run raw
12+
13+
```sh
14+
npm run build && npm run start
15+
# or
16+
yarn build && yarn start
17+
```
18+
19+
## Run with Docker
20+
21+
```sh
22+
docker build -t viness .
23+
docker run -p 3000:3000 -p 5000:5000 viness
24+
```
25+
26+
## Develop
27+
28+
```sh
29+
npm run dev
30+
# or
31+
yarn dev
32+
```

backend/package.json

+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
{
2+
"name": "gotonic-test-backend",
3+
"private": true,
4+
"version": "0.0.0",
5+
"type": "module",
6+
"scripts": {
7+
"watch": "tsc --watch",
8+
"backend": "ts-node --transpile-only ./backend/src/index.ts",
9+
"dev:backend": "concurrently 'npm run watch' 'npm run backend'",
10+
"dev:frontend": "vite",
11+
"build:backend": "tsc --build ./backend/tsconfig.json",
12+
"build:frontend": "tsc && vite build",
13+
"lint": "eslint -c .eslintrc.json ./src/**/**/*.{ts,tsx} --fix",
14+
"preview": "vite preview"
15+
},
16+
"dependencies": {
17+
"@nextui-org/button": "2.0.37",
18+
"@nextui-org/code": "2.0.32",
19+
"@nextui-org/input": "2.2.4",
20+
"@nextui-org/kbd": "2.0.33",
21+
"@nextui-org/link": "2.0.34",
22+
"@nextui-org/navbar": "2.0.36",
23+
"@nextui-org/snippet": "2.0.41",
24+
"@nextui-org/switch": "2.0.33",
25+
"@nextui-org/system": "2.2.5",
26+
"@nextui-org/theme": "2.2.9",
27+
"@react-aria/visually-hidden": "3.8.12",
28+
"clsx": "2.1.1",
29+
"framer-motion": "~11.1.1",
30+
"jsonwebtoken": "^9.0.2",
31+
"react": "18.3.1",
32+
"react-dom": "18.3.1",
33+
"react-router-dom": "6.23.0",
34+
"tailwind-variants": "0.1.20",
35+
"tailwindcss": "3.4.3"
36+
},
37+
"devDependencies": {
38+
"@types/jsonwebtoken": "^9",
39+
"@types/react": "18.3.3",
40+
"@types/react-dom": "18.3.0",
41+
"@typescript-eslint/eslint-plugin": "^7.8.0",
42+
"@typescript-eslint/parser": "^7.8.0",
43+
"@vitejs/plugin-react": "^4.2.1",
44+
"autoprefixer": "^10.4.19",
45+
"eslint": "^8.26.0",
46+
"eslint-config-prettier": "^8.2.0",
47+
"eslint-plugin-import": "^2.26.0",
48+
"eslint-plugin-jsx-a11y": "^6.4.1",
49+
"eslint-plugin-node": "^11.1.0",
50+
"eslint-plugin-prettier": "^5.1.3",
51+
"eslint-plugin-react": "^7.23.2",
52+
"eslint-plugin-react-hooks": "^4.6.0",
53+
"eslint-plugin-unused-imports": "^3.2.0",
54+
"postcss": "^8.4.38",
55+
"typescript": "^5.2.2",
56+
"vite": "^5.2.0",
57+
"vite-tsconfig-paths": "^4.3.2"
58+
}
59+
}

backend/src/index.ts

Whitespace-only changes.

favicon.ico

14.7 KB
Binary file not shown.

index.html

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>Vite + NextUI</title>
8+
<meta key="title" content="Vite + NextUI" property="og:title" />
9+
<meta content="Make beautiful websites regardless of your design experience." property="og:description" />
10+
<meta content="Make beautiful websites regardless of your design experience." name="description" />
11+
<meta
12+
key="viewport"
13+
content="viewport-fit=cover, width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"
14+
name="viewport"
15+
/>
16+
<link href="/favicon.ico" rel="icon" />
17+
</head>
18+
<body>
19+
<div id="root"></div>
20+
<script type="module" src="/src/main.tsx"></script>
21+
</body>
22+
</html>

package.json

+71
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
{
2+
"name": "viness",
3+
"private": false,
4+
"version": "0.0.0",
5+
"type": "module",
6+
"scripts": {
7+
"dev:backend": "nodemon --exec ts-node --esm ./backend/src/index.ts",
8+
"dev:frontend": "vite",
9+
"dev": "concurrently 'npm run dev:backend' 'npm run dev:frontend'",
10+
"build:backend": "tsc --project tsconfig.backend.json",
11+
"build:frontend": "tsc --project tsconfig.frontend.json && vite build",
12+
"build": "npm run build:backend && npm run build:frontend",
13+
"start:backend": "node dist/backend/index.js",
14+
"start:frontend": "serve -s dist/frontend",
15+
"start": "concurrently 'npm run start:backend' 'npm run start:frontend'",
16+
"lint": "eslint -c .eslintrc.json ./src/**/**/*.{ts,tsx} --fix",
17+
"preview": "vite preview"
18+
},
19+
"dependencies": {
20+
"@nextui-org/button": "2.0.37",
21+
"@nextui-org/code": "2.0.32",
22+
"@nextui-org/input": "2.2.4",
23+
"@nextui-org/kbd": "2.0.33",
24+
"@nextui-org/link": "2.0.34",
25+
"@nextui-org/navbar": "2.0.36",
26+
"@nextui-org/snippet": "2.0.41",
27+
"@nextui-org/switch": "2.0.33",
28+
"@nextui-org/system": "2.2.5",
29+
"@nextui-org/theme": "2.2.9",
30+
"@react-aria/visually-hidden": "3.8.12",
31+
"clsx": "2.1.1",
32+
"express": "^4.19.2",
33+
"framer-motion": "~11.1.1",
34+
"jsonwebtoken": "^9.0.2",
35+
"react": "18.3.1",
36+
"react-dom": "18.3.1",
37+
"react-router-dom": "6.23.0",
38+
"sequelize": "^6.37.3",
39+
"sqlite3": "^5.1.7",
40+
"tailwind-variants": "0.1.20",
41+
"tailwindcss": "3.4.3"
42+
},
43+
"devDependencies": {
44+
"@types/node": "^22.2.0",
45+
"@types/express": "^4",
46+
"@types/jsonwebtoken": "^9",
47+
"@types/react": "18.3.3",
48+
"@types/react-dom": "18.3.0",
49+
"@typescript-eslint/eslint-plugin": "^7.8.0",
50+
"@typescript-eslint/parser": "^7.8.0",
51+
"@vitejs/plugin-react": "^4.2.1",
52+
"autoprefixer": "^10.4.19",
53+
"concurrently": "^8.2.2",
54+
"eslint": "^8.26.0",
55+
"eslint-config-prettier": "^8.2.0",
56+
"eslint-plugin-import": "^2.26.0",
57+
"eslint-plugin-jsx-a11y": "^6.4.1",
58+
"eslint-plugin-node": "^11.1.0",
59+
"eslint-plugin-prettier": "^5.1.3",
60+
"eslint-plugin-react": "^7.23.2",
61+
"eslint-plugin-react-hooks": "^4.6.0",
62+
"eslint-plugin-unused-imports": "^3.2.0",
63+
"nodemon": "^3.1.4",
64+
"postcss": "^8.4.38",
65+
"prettier": "^3.3.3",
66+
"typescript": "^5.2.2",
67+
"ts-node": "^10.9.2",
68+
"vite": "^5.2.0",
69+
"vite-tsconfig-paths": "^5.0.1"
70+
}
71+
}

postcss.config.js

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
export default {
2+
plugins: {
3+
tailwindcss: {},
4+
autoprefixer: {},
5+
},
6+
};

public/vite.svg

+1
Loading

0 commit comments

Comments
 (0)