GithubHelp home page GithubHelp logo

mahdirezaei-dev / lia Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 128 KB

یک کد تمیز برای پیاده سازی ویژگی ثبت سفارش در لاراول

PHP 80.31% JavaScript 0.19% Blade 19.50%

lia's Introduction

Installation

After cloning the project, run the following command in your terminal to install project dependencies:

composer install

Then you need to create.env file To determine the environment variables, You can use the following command for this:

cp .example.env .env

Open the .env file and update the following variables according to your database

DB_CONNECTION=mongodb
DB_HOST=127.0.0.1
DB_PORT=27017
DB_DATABASE=
DB_USERNAME=
DB_PASSWORD=

⚠️ Warning: Remember this project is compatible with MongoDB

Migrate the database

Once your credentials are in the .env file, now you can migrate your database.

php artisan migrate

Seed the database

After the migrations are complete and you have the database structure required, then you can seed the database

php artisan db:seed

Cache

This project uses Redis for the cache mechanism. Therefore, it is necessary to set the following variables correctly:

CACHE_DRIVER=redis
REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379
REDIS_CLIENT=predis

Test

To make sure the project is working properly, you can run the tests with the following command:

php artisan test

Usage

Enter the following command to run the project:

php artisan serve

License

MIT

lia's People

Contributors

mahdirezaei-dev avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.