Skip to content

Commit

Permalink
Add for core setting
Browse files Browse the repository at this point in the history
  • Loading branch information
ZHallen122 committed Mar 2, 2025
1 parent 609a0eb commit 754b3e0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export const generateBackendCodePrompt = (
**Include:**
1. **Server Setup:**
- Initialize the server using the Express framework with ES Module syntax (use \`import\` instead of \`require\`).
- Configure middleware for JSON parsing and CORS it should allow localhost.
2. **Database Connection and Initialization:**
Database schemas: These schemas are defined in \`./schema.sql\`. The code must read and execute this file during database initialization.
Expand Down Expand Up @@ -137,7 +138,7 @@ export const generateBackendCodePrompt = (
7. **Environment Configuration:**
- Use dotenv or similar for environment variables.
- Database configuration should be environment-based.
- Server port and other settings should be configurable.
- Server port is 3000 and other settings should be configurable.
8. **Comments and Documentation:**
- Add comments explaining each section and key code blocks.
Expand Down

0 comments on commit 754b3e0

Please sign in to comment.