- Final Fullstack Project for the Masterschool Web Development program
- Tech Stack: React, Redux, JavaScript, Typescript, NodeJS, Express, PostgreSQL, Jest
After two backend courses with an image API project and a shopping app API project, where we used NodeJS, Express, Typescript and Jest, we combined our knowledge of front- and backend development to build a fullstack project. The very last - the final Masterschool project. Petbook is a facebook for pet owners - come and create an account yourself! 🐹
⚠ THIS WORK IS STILL IN PROGRESS ⚠
- cd backend => run
npm install
to install all dependencies
- cd frontend => run
npm install
to install all dependencies
-
run
npm run db
to start docker / postgres container -
Create database and users in psql:
- CREATE USER petbook_user WITH PASSWORD 'lovepets';
- CREATE DATABASE petbook_database;
- CREATE DATABASE petbook_test_database;
- GRANT ALL PRIVILEGES ON DATABASE petbook_database TO petbook_user;
- GRANT ALL PRIVILEGES ON DATABASE petbook_test_database TO petbook_user;
-
run
npm run migrate-up
to populate database -
launch the project
-
- cd backend: start backend server => run
npm run watch
=> backend port 8000
- cd backend: start backend server => run
-
- cd frontend: start frontend => run
npm run start-react
=> frontend port 3000
- cd frontend: start frontend => run
- to login you can either create your own account
- or use one of the following credentials: (⚠ not working yet)
username | password |
---|---|
Ladybug | secret123 |
Ganesha | secret456 |
- all endpoints with a description of their functionality in
API.md