Backend for invoiceGenie
npm ito install dependencies- Install and start postgresql database locally
npx sequelize db:createto create databasenpx sequelize db:migrateto create tablesnpx sequelize db:seed:allto create seed data- Clone and setup frontend at invoice-app-frontend
- Create an Auth0 account and setup an Auth0 API and Applications
- Create a SendGrid account, setup Sending Identity and generate an API key
- Configure
.envfile, make sure to get your own API keys stated below and insert it into your.envfileDB_USERNAME=postgres DB_PASSWORD= <Postgres database password> DB_NAME= <Postgres database name> DB_HOST= <Postgres database host> DB_DIALECT=postgres PORT=3000 AUDIENCE= <Auth0 Domain> AUTH_CLIENTID= <Auth0 Machine to Machine client id> AUTH_CONNECTION= <Auth0 database name> AUTH_CONNECTION_ID= <Auth0 Authentication database identifier> AUTH_DOMAIN= <Auth0 API domain> AUTH_REDIRECTURL= <Frontend Application URL> AUTH_SECRET= <Auth0 Machine to Machine client secret key> AUTH_TEMP_PW= <Temporary Password - Can be anything> AUTH_URL= <Auth0 URL> BASEURL= <Auth0 base URL> SENDGRID_API_KEY= <SendGrid API Key> SG_EMAIL= <Email address configured in SendGrid> npm startto start database locally