Code Monkey home page Code Monkey logo

medium's Introduction

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. ;)

medium's People

Contributors

lansana avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.