Skip to content

A publishing platform built with Vanilla JavaScript, CSS, Express, Node, SQL, and PostgreSQL

Notifications You must be signed in to change notification settings

post-fsa-dream-team/divulge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Divulge

A publishing platform built with Vanilla JavaScript, CSS, Express, Node, SQL, and PostgreSQL

Starting point

Local Environment

1, Connect to your database

psql
create database divulge
\c divulge

In another terminal

npm run create
npm run seed

2, Add secrets.js in app folder

const secrets = {
APIHOST: 'api-host-here',
APIKEY :'api-key-here'
}

export default secrets;

3, Start the file locally

npm install
npm run start-dev

Production Environment

1, Deploy on Heroku

heroku login
heroku apps:create your-app-name
git pull origin main
git push heroku main

2, Integrate PSQL to Heroku For heroku database

heroku addons:create heroku-postgresql:hobby-dev

**Adds the postgres add-on and push local db data into heroku database**

heroku pg:push [LOCAL DB NAME] DATABASE_URL --app [HEROKU APP NAME]

About

A publishing platform built with Vanilla JavaScript, CSS, Express, Node, SQL, and PostgreSQL

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages