Skip to content

Backend services dealing with CRUD operations regarding the STUD app.

Notifications You must be signed in to change notification settings

Studs-App/stud-crud

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

To create your PostgresQL DB follow the following steps

Access Postgres shell like so:

sudo -u postgres psql

Create Postgres DB like so:

create database studs;
create user studUser with encrypted password 'studPassword';
grant all privileges on database studs to studUser;

Fill out the following .env to conform to your database

DB_HOST='localhost'
PGHOST='localhost'

DB_PORT='5432'
PGPORT='5432'

DB_NAME='studs'
PGDATABASE='studs'

DB_USER='studuser'
PGUSER='studuser'

DB_PASSWORD='studPassword'
PGPASSWORD='studPassword'

Here's an .env script. Named .envrc

#!/usr/bin/env zsh

for x in `cat .env`; do
  todo=$(echo "export $x")
  echo "$todo"
  eval "$todo"
done

About

Backend services dealing with CRUD operations regarding the STUD app.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages