git clone https://github.com/onosendi/invoice.git
cd invoice
Create .env
file next to package.json
with the following data:
NEXT_PUBLIC_APP_NAME=Invoice
APP_SECRET=some super secret string
APP_IP=localhost
DB_NAME=invoice
DB_USERNAME=invoice
DB_PASSWORD=invoice
DB_DEBUG=false
npm install
Enter PostgreSQL shell with administrator privileges:
psql postgres
Create database, user, and grant privileges:
create database invoice;
create user invoice with encrypted password 'invoice';
alter user invoice with superuser;
grant all privileges on database invoice to invoice;
npx knex migrate:latest
npm run dev