FEUP-SINF
Project developed in the context of the 4th year course Information Systems at FEUP.
Winerd
Full-stack application for inter-company product management with Primavera EPR integration.
Technologies
Frontend
- React
- Gatsby
- Material UI
Backend
- Node.js
- Express
- PostgreSQL
How to Run
To run the frontend:
cd client
npm install
npm start
To run the backend:
First setup local database:
- Install postgres:
sudo apt update sudo apt install postgresql postgresql-contrib
- Get postgres running:
sudo service postgresql start
- Enter psql command line:
sudo -i -u postgres
- Login to postgres:
psql
- Create user with permission to create db:
CREATE ROLE api_user WITH LOGIN PASSWORD 'password'; ALTER ROLE api_user CREATEDB;
- Create database:
create database winerd;
- Exit postgres:
\q
- Run .sql file:
psql -h localhost -d winerd -U api_user -f /home/{rest of path to the project}/FEUP-SINF/api/public/database/init.sql
- Enter database command line:
psql winerd
- Confirm tables were created successfully:
\dt
cd express
npm install
npm start