It is a web app which can be used to write blog posts and upload images. Only admins can write blogs or upload images
User gets various features for writing blogs like
- Add a youtube video.
- Various fonts and font size.
- Aligining the text
- Writing piece of code in blog
- Embedding links
- Using images in blog
User gets multiple features while uploading images
- Can upload multiple images at once.
- Move the images i.e order them
Homepage shows the list of latest blogs and latest images.
Admin can manage role of the user and can check the number of posts written and images uploaded.
Backend is made on ExpressJs and MongoDb is used for database. To start app open Backend folder and perform the following steps.
First start a mongodb instance by running the following command.
mongod --dbpath=./data
Open a new terminal and then run following commands.
# Install dependencies
npm install
# Serve on localhost:3000
npm start
.
├── Backend # backend
│ ├── controllers # database controller
| ├── models # schema
| ├── middlewares # middlewares
| ├── public # public files
| ├── routes
| | ├── api # rest api
| | | ├── ... # contains all routes
| | └── auth.js # verify jwt middleware
| ├── utils
| | └── jwt.js # create and verify jwt
│ └── server.js # entry point
...
You can go check out the project at https://pentasticme-frontend.herokuapp.com/
Shubham Singal
1.0.0