This is a full‐stack TypeScript project for a “Suggestion Box” application. It includes:
- A Node + Express + SQLite backend for storing suggestions and comments.
- A React/Next.js frontend that displays suggestions, allows new submissions, and supports adding comments.
- Database: SQLite with basic tables (
suggestions,comments). - REST API:
GET /api/suggestionsPOST /api/suggestionsGET /api/suggestions/:idPOST /api/suggestions/:id/comments
- Frontend:
- Displays a list of suggestions
- Form for creating new suggestions
- Comment threads for discussion
- Random Suggestions: Optional button/toggler to auto-generate random suggestions.
git clone https://github.com/masterial/suggestion-box.git
cd suggestion-boxBackend:
cd backend
npm installFrontend:
cd ../frontend
npm installcd ../backend
npm run dev• The server starts on http://localhost:4000.
cd ../frontend
npm run dev• Open http://localhost:3000 in your browser.