English :
Application that based on idea to make a custom survey or indeed something like google form
Indonesia :
Aplikasi yang didasarkan oleh ide untuk membuat survei kustom semacam google form
Here are some of tech stack i used for this project :
- XAMPP (Dibutuhkan untuk percobaan lokal)
- Composer v1.9.3 ^
- Node JS v10.16.0 ^
- NPM v6.9.0 ^
- PHP v7.4.2 ^
Note : ^
= versi sama atau diatasnya
- Clone repository ini dengan menggunakan command berikut
git clone https://github.com/fakhrip/survey-app.git
- Selanjutnya masuk ke dalam directory dari repo tersebut
cd survey-app/
- Buat database terlebih dahulu pada aplikasi XAMPP dengan nama
survey_db
dan jenisCollation
pada http://localhost/phpmyadmin/ - Copy file
.env
dari directory awal ke directoryapp
cp .env app/
- Ubah beberapa konfigurasi pada file
.env
APP_NAME=SurveyApp DB_DATABASE=survey_db
- Install seluruh dependency didalam directory
app
cd app/ composer install npm install
- Generate key baru untuk aplikasi nya
php artisan key:generate
- Gunakan command berikut untuk menjalankan aplikasi
php artisan serve
- [OPTIONAL] Kalau anda ingin mendevelop aplikasi ini gunakan command berikut agar setiap perubahan yang dilakukan bisa langsung mempengaruhi aplikasi
npm run watch
- Gunakan command berikut untuk menginisialisasi aplikasi serta membuat akun admin pada console yang anda gunakan
php artisan init:app
- Buka aplikasi pada link http://127.0.0.1:8000/
- Pastikan MySQL dan Apache pada XAMPP sudah dalam keadaan nyala
- Pastikan Sudah mendownload Composer pada link berikut https://getcomposer.org/download/
- Pastikan PHP yang terinstall versi 7.4.2 ^ (terbaru 25/02/2020)
PS H:\survey-app\app> php -v PHP 7.4.2 (cli) (built: Jan 21 2020 17:52:43) ( ZTS Visual C++ 2017 x64 ) Copyright (c) The PHP Group Zend Engine v3.4.0, Copyright (c) Zend Technologies PS H:\survey-app\app>
- Pastikan Node JS yang terinstall versi 10.16.0 ^
PS H:\survey-app\app> node -v v10.16.0 PS H:\survey-app\app>
- Pastikan NPM yang terinstall versi 6.9.0 ^
PS H:\survey-app\app> npm -v 6.9.0 PS H:\survey-app\app>
There are several changes to the database structure so its better to see it in phpmyadmin to be clear