A remake of Medium

2016年3月 media 网站(medium.com)的翻版,用 Laravel 和 AngularJS 制作。「 A remake of Medium's March 2016 website (medium.com), built in Laravel and AngularJS. 」

  • 所有者: lansana/medium
  • 平台: Linux, Mac, Windows
  • 許可證:
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

Medium

这是一个 Medium.com 克隆。 我用 AngularJS 和 Laravel 建造了它,花了大约2-3个月。

看看 这里的演示。

特性

  • users
  • profiles (settings, update profile, etc.)
  • stories (drafts, published stories, unpublished stories, etc.)
  • categories
  • 全局搜索 (users, stories, categories, etc.)
  • 和更多

入门

首先,克隆存储库并 cd 到其中:

git clone https://github.com/lansana/medium
cd medium

接下来,使用 composer 更新和安装:

composer update --no-scripts
composer install

接下来,从 .env.example 创建一个 .env 文件,并将 APP_KEY 变量设置为以下命令的结果:

php artisan key:generate

接下来,编辑 .env 文件以保存 MySQL 数据库凭据/主机信息。

最后,运行以下命令以使用凭据迁移数据库:

php artisan migrate

您现在应该能够使用 php artisan serve --port=80 启动服务器并转到 http://localhost 来查看应用程序!

UI 开发

要在 UI 中进行开发,您需要安装 node 模块

npm install

完成后,您可以使用 gulp watch 运行开发服务器并监听更改。

UI 生产构建

运行 gulp --production 来打包一个生产就绪的资产包。

架构概述

整个应用程序是单页面应用程序,使用 PHP(Laravel)内置的 REST API。

数据存储在 MySQL 中。

使用 JWT 完成身份验证。

Angular.JS 前端。

贡献

请随意贡献。有很多我知道但忘记了处理的 bug。请继续,并发出第一个pull请求来修复它们。 ;)

概覽

名稱與所有者lansana/medium
主編程語言PHP
編程語言HTML (語言數: 3)
平台Linux, Mac, Windows
許可證
發布數0
創建於2016-04-19 01:39:12
推送於2018-04-19 15:20:05
最后一次提交2018-04-19 11:20:04
星數41
關注者數8
派生數20
提交數27
已啟用問題?
問題數3
打開的問題數2
拉請求數0
打開的拉請求數0
關閉的拉請求數0
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?

Medium

This is a Medium.com clone. I built it in AngularJS and Laravel, and it took about 2-3 months.

Check out the walk-through here.

Features

  • users
  • profiles (settings, update profile, etc.)
  • stories (drafts, published stories, unpublished stories, etc.)
  • categories
  • global search (users, stories, categories, etc.)
  • and more

Getting Started

First, clone the repository and cd into it:

git clone https://github.com/lansana/medium
cd medium

Next, update and install with composer:

composer update --no-scripts
composer install

Next, create a .env file off of the .env.example and set the APP_KEY variable to the result of the following command:

php artisan key:generate

Next, edit the .env file to hold your MySQL database credentials/host information.

Lastly, run the following command to migrate your database using the credentials:

php artisan migrate

You should now be able to start the server using php artisan serve --port=80 and go to http://localhost to view the app!

UI Development

In order to develop in the UI, you will need to install the node modules"

npm install

Once you do that, you can use gulp watch to run a development server and listen for changes.

UI Production Build

Run gulp --production to bundle a production-ready asset bundle.

Architecture Overview

The whole app is a single page application, using a REST API built in PHP (Laravel).

Data storage in MySQL.

Authentication is done using a JWT.

Angular.JS front-end.

Contributing

Feel free to contribute to anything. There are plenty of small bugs that I am aware of but have forgotten to take care of. Go ahead and make the first pull request to fix them. ;)

去到頂部