
عرض تقديمي للدورة: ما الذي ستتعلمه ، ولماذا نقوم بهذه الاختيارات وكيف سنكتشف Ruby on Rails.
Open a terminal in Kali Linux.
Update the package list by running the following command:
sudo apt update
Install Ruby using the following command:
sudo apt install ruby-full
After Ruby is installed, verify the installation by checking the version:
ruby --version
Install the build tools and libraries required for Ruby on Rails:
sudo apt install build-essential libssl-dev libreadline-dev zlib1g-dev
Install Node.js:
sudo apt install nodejs
Install the Yarn package manager (optional but recommended for managing JavaScript dependencies in Rails applications):
sudo apt install yarn
Install Ruby on Rails using the gem package manager:
gem install rails
After the installation completes, verify the installation by checking the Rails version:
rails --version
You may also need to install the SQLite database library, which is commonly used with Rails:
Copy code
sudo apt install libsqlite3-dev
link of website : https://techviewleo.com/how-to-install-postgresql-server-on-kali-linux/
Switch to the PostgreSQL user account by running the following command:
sudo -u postgres psql
Once you are in the PostgreSQL command-line interface, create a new user by executing the following command:
CREATE USER your_username WITH PASSWORD 'your_password';
Replace your_username with the desired username and your_password with the desired password for the user. Be sure to keep these credentials secure.
Next, create a new database by running the following command:
CREATE DATABASE your_database;
Replace your_database with the name you want to give to your database.
Grant all privileges on the database to the user by executing the following command:
GRANT ALL PRIVILEGES ON DATABASE your_database TO your_username;
Replace your_database with the name of your database, and your_username with the username you created earlier.
To exit the PostgreSQL command-line interface, type:
\q
CREATE TABLE user1 (
user_id serial PRIMARY KEY,
username VARCHAR ( 50 ) UNIQUE NOT NULL,
);
la class circle animation :
*****************************************************************************************************
import 'package:flutter/material.dart';
class CircleAnimation extends StatefulWidget {
final Widget child;
const CircleAnimation({
Key? key,
required this.child,
}) : super(key: key);
@override
_CircleAnimationState createState() => _CircleAnimationState();
}
class _CircleAnimationState extends State<CircleAnimation>
with SingleTickerProviderStateMixin {
late AnimationController controller;
@override
void initState() {
super.initState();
controller = AnimationController(
vsync: this,
duration: const Duration(milliseconds: 5000),
);
controller.addStatusListener((status) {
if (status == AnimationStatus.completed) {
controller.reverse();
} else if (status == AnimationStatus.dismissed) {
controller.forward();
}
});
controller.forward();
}
@override
void dispose() {
controller.dispose();
super.dispose();
}
@override
Widget build(BuildContext context) {
return AnimatedBuilder(
animation: controller,
builder: (context, child) {
// Rotation animation
final rotationAnimation = Tween<double>(begin: 0.0, end: 1.0)
.animate(CurvedAnimation(parent: controller, curve: Curves.linear));
// Fading animation
final fadeAnimation = Tween<double>(begin: 0.3, end: 1.0).animate(
CurvedAnimation(
parent: controller,
curve: Interval(0.0, 0.5, curve: Curves.easeInOut),
),
);
return Transform.rotate(
angle: rotationAnimation.value * 2.0 * 3.141592653589793,
child: Opacity(
opacity: fadeAnimation.value,
child: widget.child,
),
);
},
);
}
}
***********************************************************************************************
build stream function :
buildMusicAlbum(String profilePhoto) {
return SizedBox(
width: 60,
height: 60,
child: Column(
children: [
Container(
padding: EdgeInsets.all(11),
height: 50,
width: 50,
decoration: BoxDecoration(
gradient: const LinearGradient(
colors: [
Colors.grey,
Colors.white,
],
),
borderRadius: BorderRadius.circular(25)),
child: ClipRRect(
borderRadius: BorderRadius.circular(25),
child: Image(
image: NetworkImage(profilePhoto),
fit: BoxFit.cover,
),
))
],
),
);
}
الدورات التدريبية الطويلة التي تطول وتضيع في التفاصيل؟ وتلك التي تتناسب مع تنسيق قصير ، تتصفح الموضوعات الأساسية؟
مع هذه الدورة ، تستثمر يومًا من وقتك في تعلم Ruby on Rails ، FAST and EASY.
لاختراق تعلم ريلز ، نعتمد على قانون باريتو: يتم الحصول على 80٪ من المعرفة المفيدة في 20٪ من الجهد. لذلك نتناول هنا الموضوعات الأساسية ، والموضوعات الأساسية فقط ، لاكتشاف هذا الإطار الذي يسهل الوصول إليه وقوي للغاية.
للترسيخ في سياق مشروع حقيقي ، نقوم في هذه الدورة بتطوير تطبيق ويب حقيقي. لديك الكود المصدري للرجوع إليه عند الحاجة (منشور على GitHub ، مع فرع واحد لكل جلسة من الدورة).
من خلال هذه التجربة ، ستكون جاهزًا لتطوير تطبيق الويب الخاص بك والانتقال من فكرة إلى منتج بسرعة كبيرة.
روبي هي لغة برمجة كائنية متعددة الاستخدام. وتمتاز اللغة بكونها لغة شيئية نقية كما تمتاز باحتوائها على كثير من خواص اللغات الوظيفية استخدامات لغة روبي :
- تطبيقات سطح المكتب - تطبيقات الويب - قواعد بيانات وسكربتات امن معلومات - والمزيد
سنتعلم في هذا الكورس مايلي :
1- اساسيات لغة البرمجة روبي
2- البرمجة كائنية التوجه
3- 10 مشاريع وامثلة
سيصبح بأمكانك ان تبدأ تطور نفسك في هذه اللغة
- تطبيقات ويب
- قواعد بيانات
- تطبيقات سطح المكتب
سأقوم بشرح امثلة جديدة اضافة الى شرح كامل لقواعد بيانات بشكل احترافي
ثم سأتطرق الى شرح واجهات رسومية تطبيقات سطح المكتب شامل
اضافة الى شرح رايلز اطار عملي روبي لبناء تطبيقات الويب
سنستمر في العطاء ونشر العلم