This API serves as a backend for managing scenarios and lexicons inside a project.
- Project: Any domain project, private or public, whose terms and jargon require good collective understanding.
- Lexicons: All the universe of information that belongs to a project.
- Symbol: Term or jargon within a project. It's a type of lexicon.
- Scenario: Specific description of a use case or an interaction between the system and its users. It's a type of lexicon.
🚧 Not in production yet 🚧
API documentation is available at /api/docs using Swagger UI
To run this Node.js TypeScript API locally, follow these steps:
Before you begin, ensure you have the following installed:
- Node.js (version >= 12)
- Yarn
- MySQL
- Ensure your MySQL server is running.
- Create a database named scenarios_and_lexicons.
CREATE DATABASE scenarios_and_lexicons;
- Create a .env file in the root directory of the project.
- Add the following environment variables:
DB_TYPE=mysql
MYSQL_HOST=localhost
MYSQL_USER=<your_mysql_username>
MYSQL_PASSWORD=<your_mysql_password>
MYSQL_NAME=scenarios_and_lexicons
cd scenarios-and-lexicons-api
yarn install
yarn build
yarn start
The server will start running at http://localhost:3000.
Before you begin, ensure you have the following installed:
- Docker
- Docker Compose
- Create a .env file in the root directory of the project.
- Add the following environment variables (the database host on docker is 'db'):
DB_TYPE=mysql
MYSQL_HOST=db
MYSQL_USER=<your_mysql_username>
MYSQL_PASSWORD=<your_mysql_password>
MYSQL_NAME=scenarios_and_lexicons
cd scenarios-and-lexicons-api
docker-compose up --build
The server will start running at http://localhost:3000.
All endpoints handle errors gracefully and return appropriate HTTP status codes along with error messages.
Created by Daniel Vinícius | viniccius774@gmail.com
This project is licensed under the MIT License - see the LICENSE file for details.