[go: nahoru, domu]

Skip to content

Backend services for Wordigo, handling data processing and user management, using Azure Translate for translations.

License

Notifications You must be signed in to change notification settings

wordigo/api.wordigo.app

Repository files navigation

Wordigo API

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.

Features

  • 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.

Prerequisites

Before starting, make sure the following are installed:

  • Node.js (v14 or newer)
  • pnpm
  • Git

Installation

Clone the repository:

git clone https://github.com/wordigo/api.wordigo.app.git
cd api.wordigo.app

Install dependencies:

pnpm install

Configuration

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.

Running the Application

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

API Documentation

While the server is running, you can visit the Swagger UI at this address to interact with the API:

http://localhost:4000/docs

Testing

To run automated tests:

pnpm test

Contributors

Thank you for your contributions! We appreciate all the contributions from the community.

Contact

For questions or feedback, please reach out to us at support@wordigo.app.

License

This project is licensed under the MIT License - see the LICENSE file for details.