Created
April 28, 2017 15:34
-
-
Save airbornelamb/56eea21fc62f1562510787d93950507f to your computer and use it in GitHub Desktop.
This is an extension of nodeserversetup.sh that allows you to install additional frameworks
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
#!/bin/bash | |
clear | |
echo "This script offers options to setup javascript frameworks for Ubuntu Xenial 16.04" | |
echo "YOU MUST RUN nodeserversetup.sh script FIRST to install node, mongodb, yarn" | |
clear | |
echo "Enter number of framework to install: " | |
options=("cloud9ide" "gitlab" "express" "meteor" "react" "feathers" "quit") | |
select opt in "${options[@]}" | |
do | |
case $opt in | |
"cloud9ide") | |
echo "you chose the cloud9 IDE, beware it is in ALPHA" | |
git clone git://github.com/c9/core.git c9sdk | |
cd c9sdk/scripts | |
./install-sdk.sh | |
clear | |
echo "WARNING this is unsecure" | |
echo "To access IDE use 'test' for both user and password" | |
cd .. | |
./server.js -p 8080 -l 0.0.0.0 -a test:test | |
;; | |
"gitlab") | |
echo "you chose the gitlab server" | |
sudo apt-get install curl openssh-server ca-certificates postfix | |
curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | sudo bash | |
sudo apt-get install gitlab-ce | |
sudo gitlab-ctl reconfigure | |
;; | |
"express") | |
echo "you chose express" | |
express --view=ejs expressapp | |
cd expressapp | |
yarn install | |
echo "Express server will run on: http://localhost:3000/" | |
yarn start | |
;; | |
"meteor") | |
echo "you chose meteor" | |
curl https://install.meteor.com/ | sh | |
meteor create --full meteorapp | |
cd meteorapp | |
meteor | |
;; | |
"react") | |
echo "you chose create-react-app" | |
create-react-app reactapp | |
cd reactapp | |
yarn start | |
;; | |
"feathers") | |
echo "you chose feathers" | |
mkdir feathersapp | |
cd feathersapp | |
feathers generate app | |
echo "Server will run on http://localhost:3030/" | |
yarn start | |
;; | |
"quit") | |
break | |
;; | |
*) echo invalid option;; | |
esac | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment