This is a project for Ubt Lab Course II, a crowd-sourced news platform. The project is structured with two main folders:
client/- Contains the React application.server/- Contains the Express backend.
Make sure you have the following installed on your system:
Ensure you have a PostgreSQL database set up with the following configuration:
{
"username": "postgres",
"password": "1234",
"database": "LabCourseII",
"host": "localhost",
"dialect": "postgres"
}git clone https://github.com/dion04/LabKurs-II-Project.git
cd LabKurs-II-Projectcd server
npm installcd ../client
npm installcd server
npm run devThis starts the Express server on http://localhost:8080 (default port, can be changed in .env or server/index.js).
cd client
npm run devThis starts the React development server on http://localhost:5137.
/
├── client/ # React frontend
│ ├── src/
│ ├── public/
│ ├── package.json
│ └── ...
│
├── server/ # Express backend
│ ├── src/
│ ├── package.json
│ ├── server.js
│ └── ...
│
├── README.md # Project documentation
└── .gitignore