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.
- users
- profiles (settings, update profile, etc.)
- stories (drafts, published stories, unpublished stories, etc.)
- categories
- global search (users, stories, categories, etc.)
- and more
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!
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.
Run gulp --production
to bundle a production-ready asset bundle.
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.
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. ;)