Welcome! This document comprehensively explains the setup and usage of the Wordigo API. The Wordigo API is a backend service designed to manage dictionaries, words, translations, and user interactions.
- User Authentication: Secure login and registration functionality.
- Dictionary Management: Create, update, delete, and retrieve dictionaries.
- Word Management: Add, update, and delete words within dictionaries.
- Translation Services: Use external APIs to translate words.
- Dashboard Statistics: Provides general statistics and word interaction data.
- Swagger Documentation: Automatically generated API documentation with Swagger.
Before starting, make sure the following are installed:
- Node.js (v14 or newer)
- pnpm
- Git
Clone the repository:
git clone https://github.com/wordigo/api.wordigo.app.git
cd api.wordigo.app
Install dependencies:
pnpm install
In the root directory, copy the .env.example
file to create a .env
file and fill in the necessary environment variables:
cp .env.example .env
Then edit the .env
file with your own values.
To start the server in development mode:
pnpm run dev
To build the application for production:
pnpm run build
To start the server in production mode:
pnpm start
While the server is running, you can visit the Swagger UI at this address to interact with the API:
http://localhost:4000/docs
To run automated tests:
pnpm test
Thank you for your contributions! We appreciate all the contributions from the community.
For questions or feedback, please reach out to us at support@wordigo.app.
This project is licensed under the MIT License - see the LICENSE file for details.