-
Notifications
You must be signed in to change notification settings - Fork 18
[FS_11_김민성] Sprint-MIssion-5(BE) #11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
alstjddl0513-sys
wants to merge
6
commits into
codeit-sprint-fullstack:express-김민성
Choose a base branch
from
alstjddl0513-sys:express-김민성-sprint5
base: express-김민성
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
The head ref may contain hidden characters: "express-\uAE40\uBBFC\uC131-sprint5"
+5,146
−0
Open
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
e770df2
Add: 판다마켓 BE
alstjddl0513-sys 0bf73b0
Fix: .gitignore
alstjddl0513-sys fd84caa
chore: node_modules 추적 제외
alstjddl0513-sys c46bb64
Update: render로 배포
alstjddl0513-sys dfcd580
fix: pakage.json
alstjddl0513-sys fa53c50
Fix: separate start script
alstjddl0513-sys File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| node_modules/ | ||
|
|
||
| dist/ | ||
|
|
||
| env/* | ||
| !env/.env.example | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| { | ||
| "printWidth": 80, | ||
| "bracketSpacing": true, | ||
| "trailingComma": "all", | ||
| "semi": true, | ||
| "singleQuote": true | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| import mongoose from 'mongoose'; | ||
| import { config } from '../src/config/config.js'; | ||
|
|
||
| export const connectDB = async () => { | ||
| try { | ||
| await mongoose.connect(config.DATABASE_URL); | ||
| console.log('MongoDB connected successfully.'); | ||
| } catch (error) { | ||
| console.error('MongoDB connection error:', error); | ||
| process.exit(1); | ||
| } | ||
| }; | ||
|
|
||
| export const disconnectDB = async () => { | ||
| await mongoose.connection.close(); | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| NODE_ENV= | ||
|
|
||
| PORT= | ||
|
|
||
| DATABASE_URL= |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| import js from "@eslint/js"; | ||
|
|
||
| export default [ | ||
| js.configs.recommended, | ||
| { | ||
| languageOptions: { | ||
| ecmaVersion: 2024, | ||
| sourceType: "module", | ||
| globals: { | ||
| console: "readonly", | ||
| process: "readonly", | ||
| }, | ||
| }, | ||
| rules: { | ||
| "no-unused-vars": ["warn", { argsIgnorePattern: "^_" }], | ||
| "no-console": "off", | ||
| "prefer-const": "error", | ||
| "no-var": "error", | ||
| semi: ["error", "always"], | ||
| quotes: ["error", "single"], | ||
| }, | ||
| }, | ||
| ]; | ||
|
|
||
| import js from "@eslint/js"; | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
biome 보시면 좋을거 같고