This is a simple Joke Teller application built with Laravel for the backend and Vue 3 for the frontend. The application allows users to retrieve, add, and view jokes stored in an SQLite database.
- Retrieve all jokes
- Add a new joke
- View a specific joke by ID
- Built with Laravel and Vue 3
- PHP >= 8.0
- Composer
- Node.js and npm
- SQLite
-
Clone the repository:
git clone <repository-url> cd Jokebot -
Install PHP dependencies:
composer install -
Set up the environment file:
cp .env.example .envUpdate the
.envfile with your database configuration. -
Run the migrations to create the database tables:
php artisan migrate:fresh --seed -
Install JavaScript dependencies:
npm install -
Build the frontend assets:
npm run build -
Start the Laravel development server:
php artisan serve -
Access the application at
http://localhost:8000.
- Use the API endpoints to interact with the jokes:
GET /api/jokes- Retrieve all jokesPOST /api/jokes- Add a new jokeGET /api/jokes/{id}- Retrieve a specific joke by ID
This project is open-source and available under the MIT License.