Skip to content

Commit

Permalink
tweaks for deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
saminouidri committed Oct 29, 2024
1 parent 8230fad commit f0d9fd8
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 15 deletions.
2 changes: 1 addition & 1 deletion portfolio/app/Models/Article.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class Article extends Model
{
use HasFactory;

protected $fillable = ['title', 'content', 'category_id', 'author_id'];
protected $fillable = ['title', 'content'];

/**
* Define the relationship with the Category model.
Expand Down
24 changes: 19 additions & 5 deletions portfolio/database/articles.sql
Original file line number Diff line number Diff line change
@@ -1,9 +1,23 @@
INSERT INTO articles (title, content, author_name, created_at, updated_at) VALUES
('Welcome to my blog!', 'Welcome to my personal site! I created this space as both a digital journal and a portfolio where I can document my journey as a junior software engineer. I believe that sharing our stories, our projects, and even our setbacks can help us grow—not just individually, but as a community of learners and doers.
INSERT INTO articles (title, content, created_at, updated_at)
VALUES (
'Welcome to My Page!',
'Welcome to my personal site! I created this space as both a digital journal and a portfolio where I can document my journey as a student and aspiring software engineer. I believe that sharing our stories, our projects, and even our setbacks can help us grow—not just individually, but as a community of learners and doers.
This blog is a place for me to discuss my latest projects, share thoughts on software development trends, and offer a glimpse into my journey as a computer science student. Expect to find a mix of technical tutorials, personal reflections, and commentary on the tech world. Whether you’re here to read about my current projects, or simply connect, I’m glad to have you here!', 'Sami Nouidri', date(), date()),
('The Internet Archive goes down.', 'Most of us are used to seeing websites go down following attacks from malicious actors. However, this time, the target wasn’t just another website—it was the Internet Archive, a digital library with one of the most comprehensive collections of web content in history. This shutdown serves as a stark reminder of the importance of data preservation, as well as the vulnerability of online repositories that are meant to stand as our collective memory.
This blog is a place for me to discuss my latest projects, share thoughts on software development trends, and offer a glimpse into my journey as a computer science student. Expect to find a mix of technical tutorials, personal reflections, and commentary on the tech world. Whether you’re here to read about my current projects, gain insight into what it’s like to pursue a degree in software engineering, or simply connect, I’m glad to have you here!
In addition, this site serves as a living portfolio, showcasing projects I’ve worked on both academically and personally. You’ll find links to my GitHub projects, my LinkedIn, and even a contact form if you’re interested in collaborating or simply sharing feedback. If you’re passionate about coding, problem-solving, or learning new tech skills, I think you’ll feel right at home here. So, grab a cup of coffee, and let’s dive into the world of tech together!',
'2024-10-29 00:00:00',
'2024-10-29 00:00:00'
);

INSERT INTO articles (title, content, created_at, updated_at)
VALUES (
'The Internet Archive Goes Down',
'Most of us are used to seeing websites go down following attacks from malicious actors. However, this time, the target wasn’t just another website—it was the Internet Archive, a digital library with one of the most comprehensive collections of web content in history. This shutdown serves as a stark reminder of the importance of data preservation, as well as the vulnerability of online repositories that are meant to stand as our collective memory.
For students, academics, and the general public alike, the Internet Archive is an essential resource, offering free access to millions of books, videos, images, and web pages that would otherwise be lost to time. It even lets users "time-travel" with the Wayback Machine, exploring older versions of websites to track how content, policies, and even design have evolved over the years.
While the outage has been temporary, it highlights two key points: first, the need for stable and resilient data storage systems; second, the potential impacts if we ever lose access to such a vast repository. Many questions arise: How should we back up the web? What roles should governments and organizations play in protecting it? And for those of us in the tech field, how can we contribute to better, more resilient archives that can withstand modern threats? It’s a reminder that the information age is both fragile and essential, deserving of the same protection we’d afford to physical libraries and archives.', 'Sami Nouidri', date(), date());
While the outage has been temporary, it highlights two key points: first, the need for stable and resilient data storage systems; second, the potential impacts if we ever lose access to such a vast repository. Many questions arise: How should we back up the web? What roles should governments and organizations play in protecting it? And for those of us in the tech field, how can we contribute to better, more resilient archives that can withstand modern threats? It’s a reminder that the information age is both fragile and essential, deserving of the same protection we’d afford to physical libraries and archives.',
'2024-10-29 00:00:00',
'2024-10-29 00:00:00'
);
9 changes: 0 additions & 9 deletions portfolio/resources/views/article.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,26 +10,17 @@
<body>
<div class="container">
<div class="row">
<!-- Article content section -->
<section class="col-md-12">
<article class="blog-post">
<h1>{{ $article->title }}</h1>
<p class="text-muted">Published on {{ $article->created_at->format('F j, Y') }}</p>

<!-- Display the full content of the article -->
<div class="article-content">
{!! nl2br(e($article->content)) !!}
</div>

<hr>

<!-- Author and article details -->
<div class="author-info">
<!--<p><strong>Written by:</strong> {{ $article->author_name }}</p>-->
<p><strong>Category:</strong> {{ $article->category->name }}</p>
</div>

<!-- Back to home button -->
<a href="{{ url('/') }}" class="btn btn-primary">Back to Home</a>
</article>
</section>
Expand Down

0 comments on commit f0d9fd8

Please sign in to comment.