- windows environment setup,
1. download php 5.6.17 VC11 x86 Non Thread Safe
(1) add php.exe folder to PATH environment
(2) edit php.ini file, uncomment below lines,
; extension_dir = "ext"
;extension=php_fileinfo.dll
;extension=php_gd2.dll
;extension=php_mbstring.dll
;extension=php_mysql.dll
;extension=php_openssl.dll
;extension=php_pdo_mysql.dll
;extension=php_pdo_pgsql.dll
;extension=php_pdo_sqlite.dll
;extension=php_pgsql.dll
2. git clone https://github.com/perrywang/booking.git <your folder>
3. cd <your folder> at step #2
4. php composer.phar install
5. php artisan serve
6. goto http://localhost:8000/
7. if you see laravel welcome page the configuration succeed
- create tables in database
1. dev environment will use sqlite database
2. dev database has been configured in config\database.php
3. bookings.sqlite can be found in storage folder
4. create table migration files has been at folder database\migrations
5. just at project folder fun php.exe artisan migrate:refresh to create all the tables
- enter folder
Frontend
- execute command
npm install
- you may need to run it via admin
- to start dev server - run command
npm start
- changes on code will auto re-compile and update to browser in runtime
- to stop, use
ctrl-c
- to build - run command
npm run dist
, built artifacts locate in dist folder - to clean build folder - run
npm run clean
- to run dev server based on built artifacts - run command
npm run serve:dist
- dev server port (default 8000) - cfg/base.js
- REACTjs
- official doc finish reading in 2-3 days
- webpack no need to read through.
- react+webpack tutorial
- REACTnative 1.