Installing and configuring web project in new programming languages with commands in ubuntu 16.04

INSTALL PHP 7.0 OR HIGHER

https://tecadmin.net/install-php-7-on-ubuntu/#

sudo apt-get purge php7.0 php7.0-common

<——————————————————————————————>

PHPMYADMIN – https://launchpad.net/%7Enijel/+archive/ubuntu/phpmyadmin
sudo apt install php7.1-mysql
sudo apt install mysql-server
sudo apt install phpmyadmin
sudo apt install libapache2-mod-php7.1

Create a link in /var/www like this:

sudo ln -s /usr/share/phpmyadmin /var/www/html

For Ubuntu 15.04 and 16.04

sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf-available/phpmyadmin.conf
sudo a2enconf phpmyadmin.conf
sudo service apache2 reload

<——————————————————————————————>

LARAVEL – http://www.mundointerativo.com/2017/09/15/laravel-5-5-crud-example/
COMMANDS –
[php artisan serve –port=8130]
[php artisan make:migration create_posts_table –create=posts]
[php artisan migrate] [php artisan migrate:rollback]
[php artisan migrate:refresh]
[php artisan make:model posts]
[php artisan make:middleware posts]
[php artisan make:controller posts]
[php artisan tinker] # To interact application on the command line
[php artisan make:command SendEmails] # Creates console command for sending mails
[php artisan list] # Lists all available artisan commands

<——————————————————————————————>

CAKEPHP – https://book.cakephp.org/3.0/en/tutorials-and-examples/blog/blog.html
(https://book.cakephp.org/3.0/en/quickstart.html)
COMMANDS –
[bin/cake server –port 8120]
[bin/cake bake migration CreatePosts title:string description:text created modified] # Create posts Table.
bin/cake bake migration AddSlugToPosts slug:text # Add ‘slug’ column in ‘posts’ table.
[bin/cake bake all <TableName>] # Creates MVC structure in app with migration, model, controller and views.
[bin/cake bake model Posts] # Creates a model name ‘Posts’
[bin/cake bake controller Posts] # Creates a controller name ‘Posts’
[bin/cake <shell_name> ] # Create a custom shell command
[bin/cake bake template <TableName>] # Creates a view name ‘Posts’

<——————————————————————————————>

DJANGO – https://docs.djangoproject.com/en/2.0/intro/tutorial01/
COMMANDS –
[django-admin startproject name]
[django-admin runserver 1.2.3.4:8000]
[django-admin startapp name]
[django-admin check <options>]
[django-admin dbshell]
[django-admin dumpdata <options>]
[django-admin flush <options>]
[django-admin loaddata mydata.json]
[django-admin dumpdata –format=json –database=test app_label.ModelName | ]
[django-admin makemigrations [app_label] <options> ]
[django-admin migrate [app_label] [migration_name] ]
[django-admin sendtestemail [email1] [email2] ]
[django-admin showmigrations <options>]
[django-admin test]
[django-admin testserver –addrport 1.2.3.4:7000 test]
[django-admin changepassword [<username>] ]
[django-admin createsuperuser]

[python manage.py runserver 1.2.3.4:8000]

<——————————————————————————————>

RAILS – (http://guides.rubyonrails.org/getting_started.html )
(https://gorails.com/setup/ubuntu/16.04)
(https://railsapps.github.io/rails-git.html)
(http://www.stuartellis.name/articles/rake/)

## FOR ruby-build ISSUE
mkdir ~/.rbenv/cache
# download manually ruby file
wget https://cache.ruby-lang.org/pub/ruby/2.4/ruby-2.4.0.tar.bz2
# move file
mv ruby-2.4.0.tar.bz2 ~/.rbenv/cache
# do the install
rbenv install 2.4.0

————————
COMMANDS –
[rails new appname -d mysql]
[rails server -e production -p 4000]
[rails console]
[rails generate controller Posts [action action] [options] ]
[rails generate model Posts title:string content:string ]
[rails generate scaffold Posts title:string content:string ]
[rails dbconsole]
[rails db:migrate]
[rails db:rollback]
[rails db:schema:cache:clear]
[rails restart]
[rails about]
[rails -T] # List all rails tasks
[rake -T] # List all rake tasks

<——————————————————————————————>

SYMFONY – http://symfony.com/doc/current/best_practices/configuration.html
COMMANDS –
[server bin/console]

<——————————————————————————————>

YII – http://www.yiiframework.com/doc-2.0/guide-start-installation.html
COMMANDS –
[php yii serve –port=8888]

<——————————————————————————————>

 

CodeIgniter – http://avenir.ro/create-cms-using-codeigniter-3/

<——————————————————————————————>

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s