Giter Club home page Giter Club logo

laravel-survey's Introduction

Laravel 6 survey

Build status Coverage Status StyleCI status Docs Made in

Custom survey app in Laravel 6.

Pre-requisites

  • Linux
  • Node.js v7+
  • MySQL v5.5+ (or MariaDB)
  • PHP v7.2+

Or you could install it via docker.

Building

Inside the repo's folder.

Install Node.js dependencies, it will take some time.

$ npm i

Download composer.

$ php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
$ php composer-setup.php

If you want to speed up composer then download prestissimo. Hopefully this is just a temporary solution.

$ php composer.phar global require hirak/prestissimo

Install composer's dependencies.

$ php composer.phar install

Copy and edit your own .env file out of .env.example, it is essential.

$ cp .env.example .env

Generate the new APP_KEY value on the .env file.

$ php artisan key:generate

You'll have to configure MySQL yourself, it's not that hard.

Log into your MySQL as root.

Say your .env file has the following confs

  DB_USERNAME=laravel_survey_user
  DB_HOST=127.0.0.1
  DB_PASSWORD=laravel_survey_pass
  DB_DATABASE=laravel_survey_database

Create the user DB_USERNAME at DB_HOST identified by DB_PASSWORD.
> CREATE USER [email protected] IDENTIFIED BY 'laravel_survey_pass';

Create the database DB_DATABASE.
> CREATE DATABASE laravel_survey_database;

Grant DB_USERNAME all privileges to DB_DATABASE.
> GRANT ALL ON laravel_survey_database.* TO [email protected];

Execute laravel's migrations.

$ php artisan migrate

Run webpack's tasks to generate JavaScript and CSS assets.

$ npm run dev
OR
$ npm run production # to generate minified files

Start up the server.

$ php artisan serve

You will have to access http://localhost:8000/laravel/.

Optional 3rd party integrations

I recommend you just updating the .env file variables PUSHER_ENABLED=true and GOOGLE_RECAPTCHA_ENABLED=true and starting up the server. The first page will tell you about missing configurations in these optional 3rd party integrations. A form will be created for input and validation of the credentials. If some error occur you'll be notified. In case all credentials are correct the .env file will be updated and you'll be able to proceed normally.

Pusher

Create your app at pusher's dashboard. Edit the .env file with your credentials

PUSHER_ENABLED=true
PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=
PUSHER_APP_CLUSTER=

Google Recaptcha

Go to Google Recaptcha's admin page and register a new site. Edit the .env file with your keys

GOOGLE_RECAPTCHA_ENABLED=true
GOOGLE_RECAPTCHA_SITE_SECRET=
GOOGLE_RECAPTCHA_SITE_KEY=

Community

License

MIT

laravel-survey's People

Contributors

dependabot[bot] avatar dptole 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

Watchers

 avatar  avatar  avatar  avatar

laravel-survey's Issues

Redirect to laravel

I tried to remove /laravel from url. But when open the survey (public-survey) to fill it it gives me a message of "try again later" and redirects to mydomain.com/laravel/. I think it is redirecting it from somewhere in js. can you point it or resolve it?
Thank you.

add new model

Hello, thank you for your team work.
I have one issue but its just mine.
I need add customer to this project, It helps me survey has many customer and answer need to save with customer's id
How can i customer_id for my saveAnswer API.

Question skip

Hello dear,
i have one request again, That is multiple choice, have you got solution?
Can you fix it?

Error npm run dev

I have some errors when I run npm run dev
This is the screenshot:
image
.
How can I fix that?

questions.js not found

The question.js was not part of the files that were downloaded, as a result the application does not allow me to enter answer options when i run the application.
Kindly assist.

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.