bahmutov / next-js-example-may-2020

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Next.js

Example ci status badges status renovate-app badge cypress version next version

  • Next.js
  • Jest
  • Cypress.io

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>

About


Languages

Language:JavaScript 75.3%Language:TypeScript 24.7%