Built an amazing Meme Stream Application where users can post memes by providing their name, a caption for the meme, URL for the meme image as input and the tags. The page is retrieving and displaying the latest 100 posted Memes (names + caption +tags+meme images). Also users can edit ,like and delete meme. Link to hosted application: https://meme-stream-by-yogita.netlify.app
MERN is a fullstack implementation in MongoDB, Expressjs, React/Redux, Nodejs.
I used MERN stack to develope this application.
Flow :
- The user views the React web app with a browser.
- With both components written in Node.js, the React front end communicates with the Express back end via RESTful APIs.
- The back-end Express application uses the Mongo database for storing and retrieving data.
- Back-end results are communicated back to the the front end.
- Front-end results are rendered in a human readable format to the user.
Front-End - React + Redux
Back-End - Node.js, Express.js & MongoDB
-
Clone or download
git clone https://gitlab.crio.do/COHORT_ME_BUILDOUT_XMEME_ENROLL_1612436694845/yogitamisal12-me_buildout_xmeme.git
cd yogitamisal12-me_buildout_xmeme
npm i -
project structure
package.json server/ package.json client/ package.json
-
Client-side usage(PORT: 3000)
$ cd client // go to client folder $ npm i // npm install pacakges $ npm start // run it locally
-
Server-side usage(PORT: 8081)
$ cd server // go to server folder $ npm i // npm install pacakges $ npm start // run it locally
Deploy Server to Heroku
$ npm i -g heroku $ heroku login ... $ heroku create $ npm start heroku:add // remember to run this command in the root level, not the server level, so if you follow the documentation along, you may need to do `cd ..` $ pwd /Users//mern $ npm start deploy:heroku
Deploy client to Netlify
$ npm start build // this will compile the react code using webpack and generate a folder called build in the root level $ npm start // this will run the files in docs, this behavior is exactly the same how gh-pages will run your static site
- Material UI -Material-UI is a simple and customizable component library to build faster, beautiful, and more accessible React applications. If you want to learn more about it click here