- Check if your computer has npm and NodeJS installed using
node -v
npm -v
. Installation instructions can be found here - Install project packages using the
npm install
in the same directory as the package-lock.json file. - Duplicate .envexample, rename to .env and update all database values accordingly.
- Run
npm run three
for frontend only ornpm run server
for full stack application.
- GITHUB PAGES ONLY: Set
PRODUCTION
variable to"true"
inside the .env file npm run build
- builds static page- Copy over the house model folder
/models
to the/dist
folder that was generated bynpm run build
. - GITHUB PAGES ONLY : Push the built folder to Github pages.
git add dist -f
,git commit -m "Adding dist"
,git subtree push --prefix dist origin gh-pages
- Preview on local machine - only works if PRODUCTION is set to
"false"
- beforenpm run build
command is ran.
- ExpressJS - Backend
- PostgreSQL - Database
- Sequelize - Sits on top of Postgres. Using for model instances.
- ThreeJS - Render 3D objects
- Nodemon - Refresh on file save for ExpressJS
- dotenv - Dotenv is a zero-dependency module that loads environment variables from a .env file into process.env.