This project consists of two parts:
- A Laravel basic small application that serves as the backend, providing API endpoints (not yet secured with authentication).
- A Next.js application that serves as the frontend, which communicates with the Laravel API.
This is a very basic Laravel application that provides an API endpoint (not yet secured with authentication).
-
Clone the repository and navigate to the Laravel app directory:
cd ./Backend
-
Install the dependencies using Composer:
composer install ``
-
Generate the application key:
php artisan key:generate
-
Set up your database in the
.env
file and run migrations:php artisan migrate
-
Inject a couple of users and project into the db:
php artisan db:seed
You can run the Laravel development server with:
php artisan serve
By default, the app will be served at http://localhost:8000
.
This is a Next.js application that serves as the frontend of the project. It communicates with the Laravel API.
- Node.js 18.x or higher
- npm (Node Package Manager)
- Clone the repository and navigate to the Next.js app directory:
cd ./Frontend
- Install the dependencies:
npm install
You can run the development server with:
next serve
By default, the app will be served at http://localhost:3000
.
- Implement authentication for the Laravel API endpoints.
- Adding more fun stuff :)