Coder Social home page Coder Social logo

laravel-mood-tracker's Introduction

Overview

This is the final repo for the Laravel MySQL Mood Tracker project showing PlanetScale integration. You can find the full tutorial on the PlanetScale blog.

mood-tracker

Run the application

  1. Clone the repo:
git clone [email protected]:planetscale/laravel-crud-mysql.git
  1. Install the dependencies (npm install for Tailwind):
cd laravel-crud-mysql
composer install
npm install
  1. Create your PlanetScale database. For complete instructions, see this section of the tutorial.

  2. Copy the .env file:

mv .env.example .env
  1. Update the .env database section with your PlanetScale credentials. It should look similar to this:
DB_CONNECTION=mysql
DB_HOST=xxxxxxxxxx.us-east-3.psdb.cloud
DB_PORT=3306
DB_DATABASE=laravel-mood-tracker
DB_USERNAME=xxxxxxxxxxx
DB_PASSWORD=pscale_pw_xxxxxx-xx-xxxxxxxxxxxxxxxxxxxxxxxx
MYSQL_ATTR_SSL_CA=/etc/ssl/cert.pem

Note: The value for MYSQL_ATTR_SSL_CA will depend on your system. You can find more information on our Secure Connections page.

  1. Run the migrations:
php artisan migrate
  1. Seed the database:
php artisan db:seed
  1. Start the build process (for Tailwind):
npm run watch
  1. Start the server:
php artisan serve
  1. View the application at http://localhost:8080

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.