Skip to content

hWeitian/invoice-app-backend

Repository files navigation

invoice-app-backend

Backend for invoiceGenie

Setup and Run

  • npm i to install dependencies
  • Install and start postgresql database locally
  • npx sequelize db:create to create database
  • npx sequelize db:migrate to create tables
  • npx sequelize db:seed:all to 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 .env file, make sure to get your own API keys stated below and insert it into your .env file
    DB_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 start to start database locally

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors