New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@gautamarora/blog

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gautamarora/blog

megaapp - blog

0.1.3
latest
npm
Version published
Weekly downloads
7
600%
Maintainers
1
Weekly downloads
 
Created
Source

Blog

This blog application is a mega-app that is built using a micro-app architecture. Each page (post, photo, profile) is a micro-app that uses expressjs, browserify, handlebars & sass. These micro-apps share other micro-apps like header. Each micro-app is published as a npm module at npmjs.com from where it is installed into the mega app.

The modular architecture is inspired from See-Eat-Sleep/AppUp and Condé Nast Traveler.

Micro Apps used:

How to run

  • Clone the blog repo:

     git clone git@github.com:gautamarora/blog.git
    
  • Install dependencies:

     cd blog
     npm install
    
  • Run the app:

     npm start
    

Now go to localhost:3000 to see the sample blog app

How to dev

For development, its easiest to softlink all the dependencies to local folders for the microapp dependencies, here is how:

  • Clone all the microapp dependency repos:

     git clone git@github.com:gautamarora/core.git
     git clone git@github.com:gautamarora/header.git
     git clone git@github.com:gautamarora/homepage.git
     git clone git@github.com:gautamarora/post.git
     git clone git@github.com:gautamarora/photo.git
     git clone git@github.com:gautamarora/profile.git
     
    
  • Install dependencies for all the above repos by running this command in each of them:

     npm install
     
    
  • Create softlinks for all the dependencies by running this command in each of them:

     npm link
     
    
  • Now go back to the blog repo and softlink it to the locally cloned repos:

     npm link core
     npm link header
     npm link homepage
     npm link post
     npm link photo
     npm link profile
    
  • Now you can make edits to any microapp locally, and the changes will be reflected when you run the blog app:

     npm start
    

Live Examples

www.gautamarora.com

FAQs

Package last updated on 29 Jan 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts