See the database schema from here for better understanding.
- Catering module
- Catering payment module
- Meal module
- Meal routine module
- User module
- User payment module
- User meal module
- Manager module
- Dashboard analytics
This guide provides step-by-step instructions for setting up a Laravel application. Laravel is a popular PHP framework that offers a clean and elegant syntax, making it easy to build web applications quickly.
Before you begin, make sure you have the following installed on your system:
- PHP (7.4 or higher)
- Composer
- MySQL or any other supported database
- Node.js (14.x or higher)
- PNPM | Yarn
- Web server (e.g., Apache or Nginx)
-
Open your
terminal
or command prompt. -
Navigate to the directory where you want to store your Laravel application.
-
Run the following command to clone the repository:
git clone https://github.com/shuvomohajan/office-meal.git
- Navigate into the project's root directory:
cd office-meal
- Run the following command to install the project dependencies using Composer:
composer install
- Run the following command to install the JavaScript dependencies:
pnpm install
or
yarn install
- Create a copy of the
.env.example
file and name it.env
:
cp .env.example .env
- Generate a new application key by running the following command:
php artisan key:generate
- Open the
.env
file and configure the database connection details, such asDB_HOST
,DB_PORT
,DB_DATABASE
,DB_USERNAME
, andDB_PASSWORD
, according to your local environment.
-
Create a new
database
in your MySQL or preferred database system. -
Update the
.env
file with the newly created database credentials. -
Run the following command to migrate the database tables:
php artisan migrate
- If your application uses seeders, run the following command to
seed
the database:
php artisan db:seed
- Run the following command to build your assets using
Vite
:
pnpm dev
or
yarn run dev
- Use the following command to start the Laravel development
server
:
php artisan serve
if you using laragon or laravel valet? then you don't have to start development server
. just goto the respected url which is provided by laragon or laravel valet.
- Open your web browser and visit http://localhost:8000 to see your Laravel application running.
Conclusion You have successfully set up your Laravel application! Now you can start building your web application using the powerful features and tools provided by Laravel. Happy coding!