Skip to content

Latest commit

 

History

History
39 lines (25 loc) · 599 Bytes

README.md

File metadata and controls

39 lines (25 loc) · 599 Bytes

API Boiletplate

Setup an environment with the file server.env containing following the same structure of server.env.example

Local Postgres

I will be creating a user "postgres" and a database "mococa_api_v2"

Login to database with user postgres

psql -U postgres

Create a database called mococa_api_v2

CREATE DATABASE mococa_api_v2;

Select the database you just created

\c mococa_api_v2;

Add the UUID extension

CREATE EXTENSION IF NOT EXISTS "uuid-ossp";

Exit psql

\q

Should be good enough to set it up properly