I build this repo as result of common problem in everyday interview (take home assignment). It is a collective of carefully curated programs designed and developed for learning purposes and demonstration of experiences of the years. You would probably find your take home assignment here. It's free for your use, but don't forget the credit. The backend is robust with test cover for almost all line of code.
Welcome to the Monorepo Playground! This repository contains various projects and experiments using Laravel PHP, Next.js, and React.js. It serves as a playground for exploring new features, testing ideas, and tinkering with different technologies.
The Laravel PHP project is a backend application providing APIs and other server-side functionalities.
The Next.js project is a server-rendered React application that uses the Laravel backend for its API.
The React.js project is a client-side application that interacts with both the Laravel backend and the Next.js frontend.
To set up the monorepo locally, follow these steps:
-
Clone the repository
git clone https://github.com/yourusername/monorepo-playground.git cd monorepo-playground
-
Install dependencies for Laravel
cd laravel-app composer install cp .env.example .env php artisan key:generate php artisan migrate
-
Install dependencies for Next.js
cd ../nextjs-app npm install cp .env.example .env
-
Install dependencies for React.js
cd ../reactjs-app npm install
Here are the common scripts you might need:
-
Start Laravel server
cd laravel-app php artisan serve
-
Start Next.js server
cd nextjs-app npm run dev
-
Start React.js development server
cd reactjs-app npm start
-
Build Next.js for production
cd nextjs-app npm run build
-
Build React.js for production
cd reactjs-app npm run build
We welcome contributions! Please follow these steps to contribute:
- Fork the repository.
- Create a new branch (
git checkout -b feature/your-feature
). - Make your changes.
- Commit your changes (
git commit -m 'Add some feature'
). - Push to the branch (
git push origin feature/your-feature
). - Open a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.