Skip to content

boyboi86/API_basic_random

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

API_basic_random

This is a full MERN stack app.

For a full list of library used kindly refer to package.json.

This is a simple blog that allows individual users to create/read/update/delete their post.

Posts are specific to individual users as routes are privatized by JWT tokens.

Therefore, if the post entry does not belong to the correct user, they cannot delete or update that post.

With the only exception to users page where every user can see every available user in the database as well as the number of post they have created.

Under public folder, there is another readme.md specifically for React/Redux instructions.

Finished on 29 Sept 2016.

instructions

download zip file or clone using git clone

navigate to working directory, then run npm install

run npm start, got to browser http://localhost:3000

##When you are authenticated

You can see all your post/ create your post, edit your post and delete your post.

You can also see all your post details like when it was posted.

You can see a list of users with the number of post they have made.

There is character count handle at bottom right hand corner, when you create new post. To keep track of number of characters typed.

Give it a try here Heroku

##When you are NOT authenticated

You can see all other individual posts. (Assuming if you know their user IDs)

Note

Server-side was scaffolded using express-generator then modified to fit the needs of the project.

I included the bundle.js in the public folder, so there is no need to run additional commands.

Please make sure you have either mongodb installed or a mLab account when you set up your own config file.

config file format : module.exports = { mLab: <mLAB_URL> secret: <JWT_SECRETKEY> }

Although the app is completed but it will continuously be updated to add more features and styles.

About

NodeJS/ExpressJs/Mongoose/Passport/JWT/React/Redux (MERN Stack)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages