This branch contains the complete codebase for the Rihen Universe platform, a collaboration and e-learning solution. The project is structured into two main parts: the frontend and the backend, each located in its respective directory.
Rihen Universe is a platform designed to facilitate:
- Project Management: Streamlining internal communication and task management.
- Internal Training: Providing an efficient environment for employee development.
- Frontend: Built with Next.js, providing a dynamic and responsive user interface.
- Backend: Developed with Flask and documented using Flask-RESTx.
- Database: PostgreSQL for reliable and structured data storage.
main/
|-- frontend/ # Contains the Next.js frontend code
|-- backend/ # Contains the Flask backend code
|-- README.md # Documentation for the fullstack project
The frontend/ directory includes all the code for the user interface built with Next.js.
- Entry point:
frontend/src/pages/index.js - Reusable components:
frontend/src/components/ - Styles:
frontend/src/styles/
Refer to the frontend/README.md for detailed setup instructions.
The backend/ directory includes the API and business logic developed with Flask and Flask-RESTx.
- API routes:
backend/app/routes/ - Database models:
backend/app/models.py
Refer to the backend/README.md for detailed setup instructions.
- Node.js (v18 or higher)
- Python (v3.10 or higher)
- PostgreSQL
git clone https://github.com/GDev-Karl/rihen_platform.git
cd rihen_platform- Navigate to the
frontend/directory:cd frontend - Install dependencies:
npm install
- Start the development server:
npm run dev
- Access the frontend at:
http://localhost:3000
- Navigate to the
backend/directory:cd backend - Create a virtual environment:
python -m venv venv source venv/bin/activate # On Windows venv\Scripts\activate
- Install dependencies:
pip install -r requirements.txt
- Configure the PostgreSQL database in the
.envfile:DATABASE_URL=postgresql://<user>:<password>@<host>:<port>/<database> - Start the Flask server:
flask run
- Access the backend API at:
http://127.0.0.1:5000
- Frontend: Not deployed yet
- Backend: Rihen API
Contributions are welcome! To contribute:
- Fork the repository.
- Create a new branch for your feature or bug fix:
git checkout -b feature/your-feature-name
- Commit your changes:
git commit -m "Description of your changes" - Push the branch to your fork and open a pull request.