Skip to content

lottverw/challenge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Full-Stack Application with Laravel API and Next.js Frontend

Overview

This project consists of two parts:

  1. A Laravel basic small application that serves as the backend, providing API endpoints (not yet secured with authentication).
  2. A Next.js application that serves as the frontend, which communicates with the Laravel API.

Laravel Application (Backend)

Description

This is a very basic Laravel application that provides an API endpoint (not yet secured with authentication).

Installation

  1. Clone the repository and navigate to the Laravel app directory:

    cd ./Backend
  2. Install the dependencies using Composer:

    composer install
    ``
  3. Generate the application key:

    php artisan key:generate
  4. Set up your database in the .env file and run migrations:

    php artisan migrate
  5. Inject a couple of users and project into the db:

    php artisan db:seed

Running the Application

You can run the Laravel development server with:

php artisan serve

By default, the app will be served at http://localhost:8000.

Next.js Application (Frontend)

Description

This is a Next.js application that serves as the frontend of the project. It communicates with the Laravel API.

Requirements

  • Node.js 18.x or higher
  • npm (Node Package Manager)

Installation

  1. Clone the repository and navigate to the Next.js app directory:
    cd ./Frontend
  2. Install the dependencies:
    npm install

Running the Application

You can run the development server with:

next serve

By default, the app will be served at http://localhost:3000.


Future Improvements

  • Implement authentication for the Laravel API endpoints.
  • Adding more fun stuff :)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks