guilhermegm / gastarme

Wallets and cards manager

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gastar.me

Dependencies

Running for development

npm start

The "start" command will ran "docker-compose up" that will start up the application and a postgres for development purposes.

Then connect to the container

docker exec -ti gastarme_gastarme_1 bash

then you will need to run the migrations

./node_modules/.bin/sequelize db:migrate

and the seeds for the admin user, his credentials are:

E-mail: admin@gastar.me Password: admin

./node_modules/.bin/sequelize db:seed:all

For production

For production you will need to set the following environment variables

GASTARME_JWT_SECRET=
GASTARME_DB_DATABASE=
GASTARME_DB_USERNAME=
GASTARME_DB_PASSWORD=
GASTARME_DB_HOST=
GASTARME_DB_PORT=

Tests

With the container up, run:

docker exec -ti gastarme_gastarme_1 npm run test -- --watch

About

Wallets and cards manager


Languages

Language:JavaScript 100.0%