Coder Social home page Coder Social logo

laravel-vue-login-register's Introduction

How to use

  • Clone the repository with git clone

Back-end

  • Go to the sub-folder cd laravel-api
  • Copy .env.example file to .env and edit database credentials there
  • Add correct value of your domain for front URL in this variable: FRONTPAGE_VERIFY_URL=[your_domain]/verify/
  • Run composer install
  • Run php artisan key:generate
  • Run php artisan migrate --seed (it has some seeded data for your testing)
  • Run php artisan passport:install

Front-end

  • Go to the sub-folder cd front
  • Copy .env.local.example to .env.local and edit URL of your API
  • Run npm install
  • Run npm run serve
  • That's it: launch the URL that appears in the terminal - could be http://localhost:8080

License

Basically, feel free to use and re-use any way you want.


More from our LaravelDaily Team

laravel-vue-login-register's People

Contributors

dcyou avatar laraveldaily avatar povilaskorop avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

laravel-vue-login-register's Issues

Question about API returning 404

Im not sure if I am putting this in the right place but I tried using the project to practice/learn API and Laravel with Vue.

My env.local file has -> VUE_APP_API_URL=http://127.0.0.1:8080/api/
My env file has -> FRONTPAGE_VERIFY_URL=http://localhost:8080/verify/

I didnt change any from the other files I just wanted to run the demo so I could check the files but I am getting 404 on registration API I've been checking solution but unfortunately I can't solve it on my own so I wanted to check if this will help me get the solution I need.

image

CORS issue

Setup the project exacly like the README instructed me to. But sadly I get a CORS error

Screenshot 2021-07-18 om 20 42 19@2x

Does someone know how to solve this issue? Maybe a config thing?

Database issue

i ma new with this laravel - vue frameworks please when i tried to run the following command : php artisan migrate --seed
its show me this error .
Database name seems incorrect: You're using the default database name laravel. This database does not exist.

Edit the `.env` file and use the correct database name in the `DB_DATABASE` key.

Please how do i fix it?

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.