This repository contains a base Laravel 11 project that implements a backend system for managing Christmas gift deliveries, children's lists, and elf operations.
- PHP >= 8.2
- Composer
- Node.js >= 18.x
- npm or yarn
- MySQL >= 8.0 (or your preferred database)
- Git
- Clone the repository
git clone <repository-url>
cd <project-folder>
- Install PHP dependencies
composer install
- Install frontend dependencies
npm install
# or using yarn
yarn install
- Environment Setup
# Copy the example environment file
cp .env.example .env
# Generate application key
php artisan key:generate
- Configure your
.env
file with your database credentials and other necessary settings
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=your_database_name
DB_USERNAME=your_username
DB_PASSWORD=your_password
- Run database migrations
php artisan migrate
- Create API KEY
API_KEY=your_api_key
- Start the development server
php artisan serve
- Compile frontend assets
# For development
npm run dev
# or
yarn dev
# For production
npm run build
# or
yarn build
Your application should now be running at http://localhost:8000
- Run all migrations
php artisan migrate
- Rollback latest migration
php artisan migrate:rollback
- Re-create database
php artisan migrate:refresh
- Rollback all migrations
php artisan migrate:reset
php artisan l5-swagger:generate
- Clear application cache
php artisan cache:clear
- Clear configuration cache
php artisan config:clear
- Run tests
php artisan test
- Follow PSR-12 coding standards
- Write meaningful commit messages
- Use git flow for branching
- Create feature branches for new development
- Write tests for new features
If you encounter any issues:
- Ensure all dependencies are installed correctly
- Verify your PHP version meets the requirements
- Make sure your database service is running
- Check the Laravel logs in
storage/logs
- Clear all caches:
php artisan cache:clear
php artisan config:clear
php artisan route:clear
php artisan view:clear
Open the file doc/index.html
Execute php artisan serve
Open http://localhost:8000/api/documentation
Open https://documenter.getpostman.com/view/18337636/2sAYBVgBVU
This project is licensed under the MIT License.