Skip to content

Commit

Permalink
Merge pull request #35 from serafuku/develop
Browse files Browse the repository at this point in the history
v1.0 릴리즈 풀리퀘스트
  • Loading branch information
yunochi authored Nov 23, 2024
2 parents cd0a2eb + bba2fcc commit 002c272
Show file tree
Hide file tree
Showing 83 changed files with 4,071 additions and 1,420 deletions.
7 changes: 7 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

.git
.gitignore
Dockerfile
local_db_data
local_redis_data

6 changes: 0 additions & 6 deletions .eslintrc.json

This file was deleted.

6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,8 @@ next-env.d.ts
.vscode

#localDB data
local_db_data
local_db_data

# local Redis data
local_redis_data

8 changes: 8 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

{
"singleQuote": true,
"semi": true,
"useTabs": false,
"tabWidth": 2,
"printWidth": 120
}
661 changes: 661 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions compose.local-db.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,14 @@ services:
- 127.0.0.1:5432:5432
volumes:
- ./local_db_data:/var/lib/postgresql/data
redis:
image: redis:7-alpine
restart: always
env_file:
- ./config/local_dev.env
ports:
- 127.0.0.1:6379:6379
volumes:
- ./local_redis_data:/data


6 changes: 6 additions & 0 deletions config/docker.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ POSTGRES_DB=quesdon
TZ=Asia/Seoul
# -----------------------------------------------


# ---------- REDIS CONFIG ----------------------
REDIS_HOST=redis
REDIS_PORT=6379
# ------------------------------------------------

# ---------- APP CONFIG -------------------------
# Set exposed web url
WEB_URL="https://neo-quesdon.serafuku.moe"
Expand Down
6 changes: 6 additions & 0 deletions config/local_dev_example.env
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ POSTGRES_DB=quesdon
TZ=Asia/Seoul
# -----------------------------------------------


# ---------- REDIS CONFIG ----------------------
export REDIS_HOST=localhost
export REDIS_PORT=6379
# ------------------------------------------------

# ---------- APP CONFIG -------------------------
export WEB_URL="http://localhost:3000"
export DATABASE_URL="postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@localhost:5432/${POSTGRES_DB}"
Expand Down
13 changes: 13 additions & 0 deletions docker-compose-example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ services:
dockerfile: Dockerfile
depends_on:
- db
- redis
restart: unless-stopped
ports:
- "3000:3000"
Expand All @@ -15,6 +16,17 @@ services:
- ./config/docker.env
links:
- db
- redis

redis:
image: redis:7-alpine
restart: always
env_file:
- ./config/docker.env
networks:
- internal_network
volumes:
- redis:/data
db:
image: postgres:15-alpine
restart: always
Expand All @@ -26,6 +38,7 @@ services:
- db:/var/lib/postgresql/data
volumes:
db:
redis:

networks:
internal_network:
Expand Down
17 changes: 17 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import globals from 'globals';
import tseslint from 'typescript-eslint';
import pluginReact from 'eslint-plugin-react';

export default [
{ files: ['./src/**/*.{js,mjs,cjs,ts,jsx,tsx}'] },
{ languageOptions: { globals: { ...globals.browser, ...globals.node } } },
...tseslint.configs.recommended,
pluginReact.configs.flat.recommended,
{
rules: {
'react/react-in-jsx-scope': 'off',
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': 'warn'
},
},
];
12 changes: 9 additions & 3 deletions next.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
import type { NextConfig } from "next";
import type { NextConfig } from 'next';
import 'reflect-metadata';

const nextConfig: NextConfig = {
output: "standalone",
reactStrictMode: false,
output: 'standalone',
eslint: {
ignoreDuringBuilds: true,
},
experimental: {
forceSwcTransforms: true,
},
};

export default nextConfig;
Loading

0 comments on commit 002c272

Please sign in to comment.