- Welcome to the Mi'gmaq Foundation repository. This project aims to provide educational resources and tools for learning and preserving the Mi'gmaq language.
GET /api/dictionary
- Retrieve the entire dictionary.GET /api/word-details?word={word}
- Retrieve details for a specific word.
GET /api/word-of-the-day
- Retrieve the word of the day.PUT /api/word-of-the-day/update
- Update the word of the day.
GET /api/fact?word={word}
- Retrieve an AI-generated fact about a word.
GET /api/comments?word_id={word_id}
- Retrieve comments for a specific word.POST /api/comments
- Add a new comment.
Placeholder for index-specific JavaScript if needed.
- Fetches and displays the word of the day.
- Handles dictionary search and filtering.
- Fetches and displays dictionary data.
- Implements pagination for dictionary entries.
- Fetches and displays details for a specific word.
- Fetches and displays comments for a word.
- Handles adding new comments and replies.
- Sets up the Express application, middleware, and routes.
- Starts the server on the specified port.
- Configures and exports the Supabase client for database interactions.
- Configures and exports the OpenAI client for AI interactions.
dictionaryController.js
- Handles dictionary-related API requests.wordOfTheDayController.js
- Handles word of the day API requests.aiController.js
- Handles AI-related API requests.commentsController.js
- Handles comment-related API requests.games/gamesController.js
- Handles game-related API requests.lessons/lessonsController.js
- Handles lesson-related API requests.resources/resourcesController.js
- Handles resource-related API requests.
dictionaryService.js
- Provides dictionary data operations.wordOfTheDayService.js
- Provides word of the day data operations.aiService.js
- Provides AI-related operations.commentsService.js
- Provides comment-related operations.games/gamesService.js
- Provides game-related operations.lessons/lessonsService.js
- Provides lesson-related operations.resources/resourcesService.js
- Provides resource-related operations.
Mi'gmaq Foundation
├── .env.sample
├── .gitignore
├── LICENSE.md
├── README.md
├── package-lock.json
├── package.json
├── tailwind.config.js
├── vercel.json
├── client
│ ├── css
│ │ ├── input.css
│ │ ├── output.css
│ ├── js
│ │ ├── index.js
│ │ ├── wordOfTheDay.js
│ │ ├── dictionary.js
│ │ ├── word-details.js
│ │ ├── utils
│ │ │ ├── theme-toggle.js
│ │ ├── games
│ │ │ ├── flashcard.js
│ │ ├── lessons
│ │ │ ├── lesson1.js
│ │ ├── resources
│ │ │ ├── resource1.js
│ │ ├── documentation.js
│ ├── pages
│ │ ├── index.html
│ │ ├── education.html
│ │ ├── dictionary.html
│ │ ├── word-details.html
│ │ ├── games
│ │ │ ├── flashcard.html
│ │ ├── lessons
│ │ │ ├── lesson1.html
│ │ ├── resources
│ │ │ ├── resource1.html
│ │ ├── documentation.html
│ ├── assets
│ │ ├── dictionary.json
│ │ ├── documentation.json
├── server
│ ├── config
│ │ ├── database.js
│ │ ├── openai.js
│ ├── controllers
│ │ ├── dictionaryController.js
│ │ ├── wordOfTheDayController.js
│ │ ├── aiController.js
│ │ ├── commentsController.js
│ │ ├── games
│ │ │ ├── gamesController.js
│ │ ├── lessons
│ │ │ ├── lessonsController.js
│ │ ├── resources
│ │ ├── resourcesController.js
│ ├── routes
│ │ ├── dictionaryRoutes.js
│ │ ├── wordOfTheDayRoutes.js
│ │ ├── aiRoutes.js
│ │ ├── commentsRoutes.js
│ │ ├── games
│ │ │ ├── gamesRoutes.js
│ │ ├── lessons
│ │ │ ├── lessonsRoutes.js
│ │ ├── resources
│ │ ├── resourcesRoutes.js
│ ├── services
│ │ ├── dictionaryService.js
│ │ ├── wordOfTheDayService.js
│ │ ├── aiService.js
│ │ ├── commentsService.js
│ │ ├── games
│ │ │ ├── gamesService.js
│ │ ├── lessons
│ │ │ ├── lessonsService.js
│ │ ├── resources
│ │ ├── resourcesService.js
│ ├── app.js
│ ├── server.js
├── .env
If you would like to contribute, please fork the repository and submit a pull request. For major changes, please open an issue to discuss what you would like to change.
This project is licensed under the MIT License. See the LICENSE.md file for details.