A simple blog application with CRUD. Built using Vue.js for the application and AdonisJs for the api and backend. Using keen-ui and materializecss for the frontend framework. Created based on scotch.io's building a twitter clone tutorial. so go there for detailed tutorials on building a vue.js website!
This contains:
- Login and register
- Create, read, update, delete blog posts
- Adding and deleting tags/category
- Commenting and favoriting posts
- Seeing users list and profiles
- Updating profile data and image
- Following and unfollowing users
- See posts list in certains tags/category
You can preview the application at https://postr-app.herokuapp.com/
General:
- Install node.js
- Install adonisJs cli through command prompt by using
npm i -g @adonisjs/cli
Run database
- Through command prompt, change the current directory to postr/api
- Install modules by running the following code:
npm install
- Create database named 'postr' in your mysql database. You can access phpmyadmin using xampp or others.
- Create the tables through the command prompt by running migration using the following:
adonis migration:run
- find the .env.example file in the api folder, change the extension into .env only
- Run the database using:
adonis serve
Your api can be accessed through http://127.0.0.1:3333
Run the application
- Through command prompt, change the current directory to postr/app
- Install modules by running the following code:
npm install
- Start the application through command prompt using:
npm run dev
the command prompt will show you the link to access your application