-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3c28611
commit 0b4c761
Showing
1 changed file
with
67 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
|
||
|
||
|
||
|