Giter VIP home page Giter VIP logo

mernblog's Introduction

About

Simple CMS for maintaining a blog.

I wanted something exclusive and unique to provide a platform for my blog and I also wanted to learn React. The best way to learn a tech stack is to use it, so I did. My primitive CMS was born. Basic features include adding/editing/deleting posts and photo galleries. Planned features include handling comments and integrating other social media functions to allow reader engagement.

This project uses the MERN stack (MongoDB, ExpressJS, ReactJS, NodeJS).

Development

This project was bootstrapped with Create React App.

Running on local

Node API + React on single server

This option is good for testing the currently deployed system and the routing system itself.

On windows, run start.bat in a command prompt to run the frontend+backend served on localhost:4000. The React app is served from the client/build directory. To execute commands individually, see steps below.

cd mernblog
npm install
npm run-script win-local
cd client/
npm install
npm run-script build

Although the Node server will restart automatically on code and file changes, the React app needs to be rebuilt with npm run-script build after any code changes.

Node API + React on separate servers

Run the Node API server on localhost:4000 and the React dev server on localhost:3000.

cd mernblog
npm install
npm run-script win-local
cd client/
npm install
npm start

Both servers restart automatically on code change to make changes visible on the site.

Component dependency analysis

Draw a basic dependency graph of the React components used. This does not include external libraries in the output graph.

. .drawdeps

mernblog's People

Contributors

danmun avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.