Prerequisites
Before you begin, ensure you have the following installed:- Node.js (version 19 or higher)
- npm (comes with Node.js)
- Git for version control
- PostgreSQL (for backend development)
Clone the Repository
Clone the Meridian monorepo to your local machine:Installation
Meridian uses a monorepo structure with separate frontend and backend directories. Install dependencies for each:1. Root Dependencies
2. Frontend Dependencies
3. Backend Dependencies
Environment Setup
Backend Configuration
Create a.env file in Meridian/backend/:
Frontend Configuration
Create a.env file in Meridian/frontend/:
Running the Application
Development Mode (Both Frontend & Backend)
From the root directory, run:- Frontend:
http://localhost:3000 - Backend API:
http://localhost:5001
Running Separately
Frontend only:Database Setup
Initialize PostgreSQL Database
Verify Installation
- Frontend: Navigate to
http://localhost:3000- you should see the Meridian landing page - Backend: Check
http://localhost:5001/api/health- should return a health status
Development Workflow
Making Changes
Making Changes
- Frontend changes auto-reload via React’s hot module replacement
- Backend changes require server restart (or use nodemon)
- Check the console for errors and warnings
Testing
Testing
Run tests for frontend and backend:
Code Formatting
Code Formatting
We use Prettier for code formatting. Format your code:
Next Steps
Frontend Guide
Learn about React components, routing, and state management
Backend API
Explore API endpoints and authentication
SAML Integration
Set up university SSO authentication
Development Tips
Best practices and troubleshooting
Troubleshooting
Port Already in Use
Port Already in Use
If port 3000 or 5001 is already in use:
Database Connection Issues
Database Connection Issues
Ensure PostgreSQL is running:
Module Not Found Errors
Module Not Found Errors
Clear node_modules and reinstall: