This project has 2 npm projects:
- site/backend
- site/frontend/funstuff
NOTE: Requires Node v16 to install and run! It also requires MongoDB to run! Click this link for the mongodb install website.
You can setup the repo very easily.
Use git bash to run ./setup.sh
within the /site
directory
Go to the site/backend
directory and then run
npm start
Go to the site/frontend/funstuff
directory and then run
npm start
Go to http://localhost:3000
Go to the /site
directory and run ./run.sh
with git bash
This runs both repos in 1 terminal. You can use Ctrl + C
to exit.
You should include logging for classes as follows:
- Include
const log = getLogger("view.home");
at the top of the file and replacehome
with the view name. - Change
view
tocontroller
,service
ormodel
depending on the class type. - Import the getLogger class.
- Once finished, logging is as easy as
log.debug("Your log stuffs");
!