Skip to content

This is a backend server for PiggyBank, a project submission for Hack the 6ix 2022. Please see devpost project for details and demo:

Notifications You must be signed in to change notification settings

b-edward/PiggyBank-Back-End

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Devpost

https://devpost.com/software/financial-literacy-1t29v3

Frontend Project

https://github.com/Jaskaran-Dhillon/PiggyBank-Front-End

Initialization for development

Steps:
1.) Clone the repository
2.) Install the node packages
3.) Create a .env in the root directory, add the following variables
DB_HOST="localhost"
DB_NAME="Name of the database you're created in PostgreSQL"
DB_PASSWORD="Your PostgreSQL account password"
SECRET="Some long complicated string"
PORT="Any post other than the one the client side code is running on (3000 by default)"
NODE_ENV="development"

Test here: https://ht6backend.herokuapp.com/

Note #1: This was made for windows users, the account name is hard-coded to postgres, change this if you are on macOS.
Note #2: User input validation and sanitization is basic, modify as needed.
Note #3: Designed on node version "14.17.5"

Deployment

Steps:
1.) Make sure to install the postgress addon for Heroku.
2.) Connect the git repository, add SECRET env variable, deploy.

Note #4: The env var NODE_ENV must be production when deploying (default on Heroku), modify the code if setting as something different.

About

This is a backend server for PiggyBank, a project submission for Hack the 6ix 2022. Please see devpost project for details and demo:

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published