Second implementation of Badminton DB
We leverage Knexjs and Postgresql for storing and interacting with our data.
We leverage Express for serving the backend.
We leverage Angular 13 (as of 12/19/21) for serving the frontend. We leverage Angular Material for the frontend components.
npm i
. This should install everything you need for the backend servernpm i
. This should install everything you need for the frontend angular server.env
file at the root level, with this template, fill out values as needed
PORT=80
PROD_DATABASE_NAME=''
PROD_DATABASE_URL=''
PROD_DATABASE_USER=''
PROD_DATABASE_PASSWORD=''
LOCAL_DB_URL='127.0.0.1'
LOCAL_DB_USER='postgres'
LOCAL_DB_PWD=''
LOCAL_DB_NAME='bst_db'
npm run frontend
to spin up the angular webservercreate database bst_db
or what have you, there must be guides online on how to do this, I kind of don't remember how I did this, but this is a one-time thingnpm run knexfull
to run the knex mgirations AND seed the newly created bst_db.npm run dev
to spin up the node express backend server.You should now have a working Angular server on port 4200 and an ExpressJS backend server on port 3000 and a postgresql db called bst_db on port 5432.