Skip to content

Commit

Permalink
update MEVN folder
Browse files Browse the repository at this point in the history
  • Loading branch information
nerdeveloper committed Aug 21, 2019
1 parent 3c28611 commit 0b4c761
Showing 1 changed file with 67 additions and 0 deletions.
67 changes: 67 additions & 0 deletions MEVN/mac.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
#!/bin/bash

#colors
RED='\033[0;31m'
BLUE='\033[40;38;5;82m'
PURPLE='\033[0;35m'

#version
NODEJS_VERSION='10'
MONGODB_VERSION='3.6'




echo "***** Installing MongoDB, Nuxtjs and NodeJS ********"
sleep 2


echo -e "Checking for Nodejs"
sleep 2

if [ -x "$(command -v node)" ];
then
echo -e " ${RED} You have NodeJS installed!"
else
echo -e " ${BLUE} Installing Nodejs and npm "
sleep 2
brew install node@${NODEJS_VERSION}
echo -e " ${BLUE} Nodejs and npm has been installed!"

fi

echo "Checking for Create-Nuxt-app(Vue)"
sleep 2

if [ -x "$(command -v create-nuxt-app)" ];
then
echo -e " ${RED} You have Create-Nuxt-app(Vue) installed! "
else
echo -e " ${BLUE} Installing Create-Nuxt-app(Vue)"
sleep 2
npm install -g create-next-app
echo -e " ${BLUE} Create-Nuxt-app(Vue) has been installed!"

fi

echo "Checking for MongoDB"
sleep 2
if [ -x "$(command -v mongo)" ];
then
echo -e " ${RED} You have MongoDB database Installed!"
else
echo -e " ${BLUE} Installing MongoDB "
sleep 2
brew tap mongodb/brew && \
brew install mongodb-community@${MONGODB_VERSION} && \
brew services start mongodb-community
echo -e " ${BLUE} MongoDB has been installed!"

fi

echo Done
echo -e " ${BLUE} Tweet me @_nerdeveloper"




0 comments on commit 0b4c761

Please sign in to comment.