Awesome
BalmJS demo - Laravel
Requirements
- BalmJS >= 3.x (requires Node.js)
npm install -g balm-core # required for balm 3.0
For Back-end
1.1 Installation
composer install
1.2 Configuration
cp .env.example .env
# Set your application key
php artisan key:generate
- Edit
.env
for your DB
DB_DATABASE=laravel
DB_USERNAME=root
DB_PASSWORD=
- Import database structure
php artisan migrate
For Front-end
2.1 Installation
npm install
2.2 Configuration
- Edit
balm.config.js
in your project directory, modify to your virtual host:
balm.config = {
server: {
proxy: 'your.project.local' // Target host
}
// ...
};
Enjoy :ghost:
- For development
npm run dev
Visit
http://localhost:3000
- For production
npm run prod
Visit
http://your.project.local