a0viedo / next-u-backend

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Node-backend exercise

Getting started

After running npm install on the project, create a .env file in this directory with two entries: "PORT" and "PG_CONNECTION_STRING". Example:

PG_CONNECTION_STRING=postgres://postgres:secretpassword@localhost:7778/nextudatabase
PORT=4000

After creating the .env, you will need to run the migrations. For doing so, run npx knex migrate:latest in your terminal

To run your project you need to run npm run dev on your terminal.

The only file that needs to be modified is user.js.

About


Languages

Language:JavaScript 100.0%