Coder Social home page Coder Social logo

recipe-search-3000's Introduction

Seeding database

This command will generate 50 recipes. You can run this after kickstarting the app using the instructions below. sail artisan db:seed --class=RecipeSeeder

See docs directory for mockup and Postman Collection

Mockup

Getting started

Pre-requisites

  • docker
  • docker-compose

Check out this repository

[email protected]:kchapple/recipe-search-3000.git

recipe-search-3000

Run composer to kickstart laravel sail

docker run --rm \
    --pull=always \
    -v "$(pwd)":/opt \
    -w /opt \
    laravelsail/php82-composer:latest \
    bash -c "composer install"

Run the application

cp .env.example .env

./vendor/bin/sail up -d

./vendor/bin/sail artisan key:generate

./vendor/bin/sail artisan migrate

Kickstart the nuxt frontend

./vendor/bin/sail npm install --prefix frontend

Run the frontend

./vendor/bin/sail npm run dev --prefix frontend

Confirm your application

visit the frontend http://localhost:3000

visit the backend http://localhost:8888

Connecting to your database from localhost

docker exec -it laravel-mysql-1 bash -c "mysql -uroot -ppassword"

Or use any database GUI and connect to 127.0.0.1 port 3333

Other tips

./vendor/bin/sail down to bring down the stack

Sometimes it's necessary to restart the nuxt app when adding new routes. Simply ctrl+c on the npm command execute ./vendor/bin/sail npm run dev --prefix frontend again

recipe-search-3000's People

Contributors

kchapple avatar rickshawhobo 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.