| Command | Description |
|---|---|
| local | run a docker container and the nodejs process of BOS |
| dev | run the node process of BOS |
| test | run the cucumber tests of BOS |
Before you begin, ensure you have the following installed on your machine:
- Node.js (v20.x or later)
- Yarn (v1.x or later)
- MariaDB or MySQL
- Git
First, clone the repository to your local machine:
git clone https://github.com/your-username/your-repo.git
cd your-repo
Install the required dependencies using Yarn:
yarn install
Create a file:///c%3A/wamp64/www/bos/.env file in the root directory of your project and add the following environment variables. Replace the placeholders with your actual values:
APP_ENV={{APP_ENV}}
PORT={{PORT}}
SERVER_HOSTNAME={{SERVER_HOSTNAME}}
JWT_SECRET={{JWT_SECRET}}
DB_CONNECTION={{DB_CONNECTION}}
DB_HOST={{DB_HOST}}
DB_PORT={{DB_PORT}}
DB_DATABASE={{DB_DATABASE}}
DB_USERNAME={{DB_USERNAME}}
DB_PASSWORD={{DB_PASSWORD}}
BAS_URL={{BAS_URL}}
BAS_SUPER_ADMIN_TOKEN={{BAS_SUPER_ADMIN_TOKEN}}
BAS_COMPANY={{BAS_COMPANY}}
FACTURAPI_KEY={{FACTURAPI_KEY}}
MAIL_URL={{MAIL_URL}}
SMTP_HOST={{SMTP_HOST}}
SMTP_PORT={{SMTP_PORT}}
SMTP_USER={{SMTP_USER}}
SMTP_PASSWORD={{SMTP_PASSWORD}}Ensure your database is running and create a new database with the name specified in the DB_DATABASE environment variable.
Run the database migrations to set up the necessary tables:
yarn migrate
Start the application using the following command:
yarn dev
The application should now be running at http://127.0.0.1:8000.
To run the tests, use the following command:
yarn test
To format the code, use:
yarn format
To lint the code, use:
yarn lint
To run TypeScript type checks, use:
yarn typecheck
- Ensure you have configured your SMTP settings correctly to enable email notifications.
- Replace all placeholder values in the file:///c%3A/wamp64/www/bos/.env file with your actual configuration values.
You should now have a basic understanding of how to set up and run your project. For more detailed information, refer to the project's documentation or source code.
- Ordenes especiales
- Capacidad para eliminar ordenes
- Capa de tutorial global
- Capacidad de eliminar pagos
- Registro de clientes
- Capacidad para registrar inventario
- Capacidad para crear recetas por producto
- Capacidad para registrar materiales
- Api Docs endpoint (JSON)
- Pruebas de integracion con Cucumber
- Instalar docker
- Reiniciar DB entre pruebas
- Generar seed con valores iniciales.
- clonador de db
- Generador de pruebas en base a errores 500 registrados.
- Desactivar sistemas de usuarios en pruebas (?)
- Agregar testing step en github actions (?)
- Vincular con sistema de usuarios
- Como testear un sistema externo de usuarios?
- Crea interfaz en caso de que tengas que cambiar de manejador de usuarios.
- Vincular con sistema de facturas
- Como testear un sistema externo de facturas?
- Crea interfaz en caso de que tengas que cambiar de API
- Vincular con sistema de archivos
- Debera ser capaz de manejar multiples tipos de archivos al mismo tiempo.
- Crea interfaz en caso de que tengas que cambiar de manejador de archivos.