Skip to content

Voluntary project of pet shelter website with main page, backend & backoffice.

Notifications You must be signed in to change notification settings

Wawrzyn321/schronisko

Repository files navigation

Project structure

  • backoffice/ - an administrative panel for the pet shelter.
  • DEV__zdjecia i svg/ - temporary (for a long time) dir for dev stuff
  • dev-scripts/ - scripts used for deploying the project
  • e2e/ - e2e tests for backoffice and main site
  • server/ - backend app
  • client - main frontend app
  • prisma/ - db stuff, bootstraping the database and seeding
  • copy-vsp-images.sh, init-client.sh, init.sh - scripts used on VPS.

Running all packages

At root:

npm run dev

Running backoffice

At backoffice/:

npm run dev

Running server site

At server/ - runs backend.

npm run dev

Running client site

At client/ - runs client.

npm run dev

Versions

  • NodeJS: v18.20.2
  • NPM: v10.5.0
  • PostgresSQL 14.5

node-canvas installation problems

npm install -g node-gyp
brew install jpeg pkg-config cairo pango libpng jpeg giflib librsvg

DB installation problems

brew services restart postgresql # if postgres is not up

createdb #database "<USERNAME>" does not exist

create database schronisko

# change default password
sudo -u <USERNAME>  psql schronisko
\passwd <USERNAME>