Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 814 Bytes

readme.md

File metadata and controls

32 lines (22 loc) · 814 Bytes

Next.js Example

  • Next.js
  • Postgres.js
  • Jest
  • Cypress.io
  • GitHub Actions

Database Setup

Copy the .env.example file to .env and add the database connection information.

You'll also need PostgreSQL for this.

PostgreSQL Installation instructions

Follow the instructions from the PostgreSQL step in UpLeveled's System Setup Instructions.

Run the following queries inside of psql to set up the database and the user:

CREATE DATABASE <database name>;
CREATE USER <user name> WITH ENCRYPTED PASSWORD '<user password>';
GRANT ALL PRIVILEGES ON DATABASE <database name> TO <user name>;

Then, to connect to the database using this new user, quit psql and reconnect:

\q
psql -U <user name> <database name>