npm run dev
We use https://ethereal.email service to test sending emails on the local machine. To have it working create an account in the https://ethereal.email and setup env variables in .env file When new email is sent just go to https://ethereal.email/messages and see the email
- run
brew install postgres
OR
brew install postgresql
if psql command gives you error, please try to reinstall postgres/postgresql and run
brew services restart postgres/postgresql
- run
psql --u postgres
if you see error please create new user with command -> createuser postgres -s
(s flag stands for super)
- now you are logged in under postgres super user, run
create database bookkeeper_seed
; - run this command
npm run migrate:run
- install postgres
- run
psql -U postgres
- now you are logged in under postgres super user, run
create database bookkeeper_seed
; - run this command
npm run migrate:run
Also set origin (in index.ts) to "http://localhost:3000" or whatever you use for your frontend and switch SSL to false
Please add all required variables to your .env file, here is an example below
#Postgres configuration
PGHOST=localhost
PGUSER=postgres
PGDATABASE=bookkeeper_seed
PGPASSWORD=root
PGPORT=5432
#SMTP
SMTP_HOST=yourmail
SMTP_USER=youruser
SMTP_PASSWORD=yourpassword
SMTP_PORT=yourport
SMTP_FROM=youruser
SMTP_USE_TLS=true or false
#UI Project
UI_BASE_URL=http://localhost:8088
UI_SET_PASSWORD_URL=/password/set
SECRET=yoursecret