This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo umount /mnt/c | |
sudo mount -t drvfs C: /mnt/c -o metadata | |
source: https://askubuntu.com/questions/1115564/wsl-ubuntu-distro-how-to-solve-operation-not-permitted-on-cloning-repository |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://developer.okta.com/blog/2018/06/14/php-crud-app-symfony-vue | |
# https://bootstrap-vue.js.org/docs/components/pagination/ | |
#console1 | |
mkdir -p ~/Project/movb | |
cd ~/Project/movb | |
symfony new movb-server --version=lts | |
composer require sensio/framework-extra-bundle | |
composer require symfony/orm-pack | |
composer require symfony/maker-bundle --dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# npm perm issues when instaling packages globally, | |
# src: https://stackoverflow.com/questions/33725639/npm-install-g-less-does-not-work | |
mkdir ~/.npm-global | |
npm config set prefix '~/.npm-global' | |
echo 'export PATH=~/.npm-global/bin:$PATH' >> ~/.profile | |
source ~/.profile | |
# try: | |
npm install -g @vue/cli |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#install | |
composer require symfony/http-client | |
#use | |
use Symfony\Component\HttpClient\HttpClient; | |
$client = HttpClient::create(); | |
$response = $client->request('GET', 'https://api.github.com/repos/symfony/symfony-docs'); | |
$statusCode = $response->getStatusCode(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Controller; | |
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; | |
use Symfony\Component\Routing\Annotation\Route; | |
class HomeController extends AbstractController | |
{ | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Encore | |
#... | |
.enableVueLoader() | |
#... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% extends 'base.html.twig' %} | |
{% block title %}Home page{% endblock %} | |
{% block body %} | |
<div ref="words" data-words="{{ words|join(',') }}"> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>{% block title %}Welcome!{% endblock %}</title> | |
{% block stylesheets %} | |
{{ encore_entry_link_tags('app') }} | |
{% endblock %} | |
</head> | |
<body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#assets/js/components/App.vue | |
<template> | |
<div> | |
<h2 class="center">My Application</h2> | |
<div v-text="message"></div> | |
{{ message }} | |
<ul> | |
<li :key="word.id" v-for="word in words">{{ word }}</li> | |
</ul> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Vue from 'vue'; | |
import App from './components/App'; | |
new Vue({ | |
el: '#app', | |
render: h => h(App) | |
}); |
NewerOlder