Skip to content

Commit 5568f64

Browse files
authored
Merge pull request #20 from Leke-Ariyo/master
Enhance Script Automation and Extend Stack Options
2 parents 809e068 + fff7c24 commit 5568f64

File tree

15 files changed

+293
-166
lines changed

15 files changed

+293
-166
lines changed

DJANGO/linux.sh

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/bin/bash
2+
3+
RED='\033[0;31m'
4+
BLUE='\033[40;38;5;82m'
5+
PURPLE='\033[0;35m'
6+
7+
echo "***** Installing Django for Debian and Ubuntu OS ********"
8+
sleep 2
9+
10+
echo -e "Checking for Django"
11+
sleep 2
12+
if pip3 list | grep Django &> /dev/null; then
13+
echo -e " ${RED} You have Django installed! \033[0m"
14+
else
15+
echo -e " ${BLUE} Installing Django"
16+
sleep 2
17+
pip3 install django
18+
echo -e " ${BLUE} Django has been installed! \033[0m"
19+
20+
fi
21+
22+
echo Done
23+
echo -e " ${BLUE} Tweet me @odirionyeo \033[0m"

DJANGO/mac.sh

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/bin/bash
2+
3+
RED='\033[0;31m'
4+
BLUE='\033[40;38;5;82m'
5+
PURPLE='\033[0;35m'
6+
7+
echo "***** Installing Django for macOS ********"
8+
sleep 2
9+
10+
echo -e "Checking for Django"
11+
sleep 2
12+
if pip3 list | grep Django &> /dev/null; then
13+
echo -e " ${RED} You have Django installed!"
14+
else
15+
echo -e " ${BLUE} Installing Django"
16+
sleep 2
17+
pip3 install django
18+
echo -e " ${BLUE} Django has been installed!"
19+
20+
fi
21+
22+
echo Done
23+
echo -e " ${BLUE} Tweet me @odirionyeo"

DOCKER/install.sh

100644100755
File mode changed.

FASTAPI/linux.sh

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/bin/bash
2+
3+
RED='\033[0;31m'
4+
BLUE='\033[40;38;5;82m'
5+
PURPLE='\033[0;35m'
6+
7+
echo "***** Installing FastAPI for Debian and Ubuntu OS ********"
8+
sleep 2
9+
10+
echo -e "Checking for FastAPI"
11+
sleep 2
12+
if pip3 list | grep fastapi &> /dev/null; then
13+
echo -e " ${RED} You have FastAPI installed! \033[0m"
14+
else
15+
echo -e " ${BLUE} Installing FastAPI"
16+
sleep 2
17+
pip3 install fastapi[all]
18+
echo -e " ${BLUE} FastAPI has been installed! \033[0m"
19+
20+
fi
21+
22+
echo Done
23+
echo -e " ${BLUE} Tweet me @odirionyeo \033[0m"

FASTAPI/mac.sh

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/bin/bash
2+
3+
RED='\033[0;31m'
4+
BLUE='\033[40;38;5;82m'
5+
PURPLE='\033[0;35m'
6+
7+
echo "***** Installing FastAPI for macOS ********"
8+
sleep 2
9+
10+
echo -e "Checking for FastAPI"
11+
sleep 2
12+
if pip3 list | grep fastapi &> /dev/null; then
13+
echo -e " ${RED} You have FastAPI installed!"
14+
else
15+
echo -e " ${BLUE} Installing FastAPI"
16+
sleep 2
17+
pip3 install fastapi[all]
18+
echo -e " ${BLUE} FastAPI has been installed!"
19+
20+
fi
21+
22+
echo Done
23+
echo -e " ${BLUE} Tweet me @odirionyeo"

FLASK/linux.sh

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/bin/bash
2+
3+
RED='\033[0;31m'
4+
BLUE='\033[40;38;5;82m'
5+
PURPLE='\033[0;35m'
6+
7+
echo "***** Installing Flask for Debian and Ubuntu OS ********"
8+
sleep 2
9+
10+
echo -e "Checking for Flask"
11+
sleep 2
12+
if pip3 list | grep Flask &> /dev/null; then
13+
echo -e " ${RED} You have Flask installed! \033[0m"
14+
else
15+
echo -e " ${BLUE} Installing Flask"
16+
sleep 2
17+
pip3 install Flask
18+
echo -e " ${BLUE} Flask has been installed! \033[0m"
19+
20+
fi
21+
22+
echo Done
23+
echo -e " ${BLUE} Tweet me @odirionyeo \033[0m"

FLASK/mac.sh

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/bin/bash
2+
3+
RED='\033[0;31m'
4+
BLUE='\033[40;38;5;82m'
5+
PURPLE='\033[0;35m'
6+
7+
echo "***** Installing Flask for macOS ********"
8+
sleep 2
9+
10+
echo -e "Checking for Flask"
11+
sleep 2
12+
if pip3 list | grep Flask &> /dev/null; then
13+
echo -e " ${RED} You have Flask installed!"
14+
else
15+
echo -e " ${BLUE} Installing Flask"
16+
sleep 2
17+
pip3 install Flask
18+
echo -e " ${BLUE} Flask has been installed!"
19+
20+
fi
21+
22+
echo Done
23+
echo -e " ${BLUE} Tweet me @odirionyeo"

GO/linux.sh

100644100755
File mode changed.

GO/mac.sh

100644100755
File mode changed.

PYTHON/linux.sh

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#!/bin/bash
2+
3+
RED='\033[0;31m'
4+
BLUE='\033[40;38;5;82m'
5+
PURPLE='\033[0;35m'
6+
7+
echo "***** Installing Python for Debian and Ubuntu OS ********"
8+
sleep 2
9+
10+
echo "***** Updating services ****"
11+
sleep 3
12+
sudo apt-get update
13+
14+
echo -e "Checking for Python"
15+
sleep 2
16+
if [ -x "$(command -v python3)" ];
17+
then
18+
echo -e " ${RED} You have Python3 installed! \033[0m"
19+
else
20+
echo -e " ${BLUE} Installing Python3"
21+
sleep 2
22+
sudo apt-get install python3 python3-pip -y
23+
echo -e " ${BLUE} Python3 and pip3 have been installed! \033[0m"
24+
25+
fi
26+
27+
echo Done
28+
echo -e " ${BLUE} Tweet me @odirionyeo \033[0m"

PYTHON/mac.sh

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#!/bin/bash
2+
3+
RED='\033[0;31m'
4+
BLUE='\033[40;38;5;82m'
5+
PURPLE='\033[0;35m'
6+
7+
echo "***** Installing Python for macOS ********"
8+
sleep 2
9+
10+
echo -e "Checking for Python3"
11+
sleep 2
12+
13+
if [ -x "$(command -v python3)" ];
14+
then
15+
echo -e " ${RED} You have Python3 installed!"
16+
else
17+
echo -e " ${BLUE} Installing Python3"
18+
sleep 2
19+
brew install python
20+
echo -e " ${BLUE} Python3 and pip3 have been installed!"
21+
22+
fi
23+
24+
echo Done
25+
echo -e " ${BLUE} Tweet me @odirionyeo"

README.md

+68-10
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,91 @@
11
# Stacks
22

3-
## This is a simple interactive CLI tools for setting up your stack quickly for Local development, on-prem and Bare metal servers
3+
44

5-
### Problem
5+
#### A dynamic CLI tool for effortlessly setting up your stack across local development environments, on-prem, and bare metal servers.
66

7-
Setting up a Local dev for your stack can be hard. You have to follow a lot of Blogs and do a lot of copying and pasting.
7+
88

9-
## Installation and Usage
9+
## **Why Stacks?**
10+
11+
12+
13+
Setting up a development environment can be tedious. Jumping from one blog to another, copying and pasting countless commands — it's time-consuming. Enter Stacks: a one-stop solution to streamline your setup.
14+
15+
16+
## Getting Started
17+
18+
1019

1120
```bash
12-
git clone https://github.com/nerdeveloper/stacks.git
13-
cd stacks
14-
bash setup.sh
21+
22+
git clone https://github.com/nerdeveloper/stacks.git
23+
24+
cd stacks
25+
26+
bash setup.sh
27+
1528
```
1629

17-
## Instruction for Mac users
30+
31+
32+
### **Requirements for Mac Users**
33+
34+
1835

1936
In order to install the stacks on here that are Mac compatible, you'll need to already have a working `homebrew` installation. If you do not have, Stacks will install `homebrew` for you.
2037

38+
# Stacks
39+
40+
Easily configure and set up various development stacks using the Stacks script.
41+
42+
## Available Stack Configurations
43+
44+
- **LAMP** - Linux, Apache, MySQL, PHP
45+
- **LNMP** - Linux, Nginx, MySQL, PHP
46+
- **MAMP** - Mac, Apache, MySQL, PHP
47+
- **MEAN** - MongoDB, Express.js, AngularJS, Node.js
48+
- **MNMP** - Mac, Nginx, MySQL, PHP
49+
- **MERN** - MongoDB, Express.js, React, Node.js
50+
- **MEVN** - MongoDB, Express.js, Vue.js, Node.js
51+
- **PEAN** - PostgreSQL, Express.js, AngularJS, Node.js
52+
- **PERN** - PostgreSQL, Express.js, React, Node.js
53+
- **DOCKER** - Containerization Platform
54+
- **RUBY** - Ruby Programming Language Setup
55+
- **GO** - Go Programming Language Setup
56+
- **PYTHON** - Python Programming Language Setup
57+
- **DJANGO** - Django Web Framework for Python
58+
- **FLASK** - Flask Micro Web Framework for Python
59+
- **FASTAPI** - FastAPI Modern Web Framework for Python
60+
61+
To use a specific stack, simply run the `setup.sh` and select the desired stack option.
62+
63+
## Quitting
64+
65+
- **Quit** - Exit the program
66+
2167
## CLI(Screenshot)
2268

23-
<img src="https://github.com/nerdeveloper/stacks/blob/master/images/shot.png" alt="Lighthouse perf" title="Screenshot of Stacks" width="500" >
69+
70+
71+
<img src="https://github.com/nerdeveloper/stacks/blob/master/images/shot.png" alt="Lighthouse perf" title="Screenshot of Stacks" width="500" >
72+
73+
2474

2575
### Make me feel :heart: and appreciated
2676

77+
78+
2779
You can :star: the repo | Tell your friends about it | Fork it and submit Pull Request.
2880

81+
82+
2983
You can also follow me on **[Twitter](https://twitter.com/_nerdeveloper)**
3084

85+
86+
3187
## License
3288

33-
The MIT License (MIT). Please see [License File](LICENSE) for more information..
89+
90+
91+
The MIT License (MIT). Please see [License File](LICENSE) for more information..

RUBY/linux.sh

100644100755
File mode changed.

RUBY/mac.sh

100644100755
File mode changed.

0 commit comments

Comments
 (0)