Skip to content

Core integration services between fatapp-admins and fatapp-users

License

Notifications You must be signed in to change notification settings

renanmarcos/fatapp-core

Repository files navigation

fatapp-core

Core integration services between fatapp-admins and fatapp-users

Install docker, docker-compose, npm and run inside the repository folder:

npm ci
cp .env.example .env
docker-compose up
docker-compose exec node bash
npm run typeorm schema:drop
npm run db:migrate

To enter in application container:

docker-compose exec node bash

To enter in database container:

docker-compose exec mysql bash

The application will be available at localhost:3000 (or the port specified in CORE_PORT at .env file)

Tips:

  • Always use node docker container to create migrations, models or other things via typeorm cli. (See above to enter in application container)
  • Manipulate typeorm cli via our script in package.json. So if you want to create a new model for example, use inside container:

npm run typeorm entity:create -- -n entityName (See https://github.com/typeorm/typeorm/blob/master/docs/using-cli.md to more details for using TypeORM cli with TypeScript)

  • If you want to manipute MySQL inside database container:
mysql -u user -p

Default password for MySQL is fatecdb, but both username and password are inside .env file

About

Core integration services between fatapp-admins and fatapp-users

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •