-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.bolt-prompt
More file actions
30 lines (25 loc) · 966 Bytes
/
Copy path.bolt-prompt
File metadata and controls
30 lines (25 loc) · 966 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
This is a Devvit project for a word guessing game, similar to Wordle. When working with this project:
1. Follow Devvit best practices:
- Keep Devvit app code separate from client code
- Use appropriate APIs for each context
- Follow security best practices
2. Code organization:
- /src/devvit: Devvit app code (no React)
- /src/client: React webview code
- /src/server: Node.js backend
- /src/shared: Shared types and utilities
3. Key technologies:
- Devvit for Reddit integration
- React for the webview
- Express for the backend
- TypeScript throughout
- Tailwind CSS for styling
4. Development workflow:
- Run `npm run dev` to start development
- Use `npm run deploy` to deploy to Reddit
- Test changes in the Reddit environment
5. Important considerations:
- Keep the word list secure in the backend
- Handle game state properly
- Ensure proper error handling
- Maintain type safety across boundaries