Skip to content

Commit 2d21c59

Browse files
committed
more updates - readme and flasgger added
1 parent e594ffd commit 2d21c59

3 files changed

Lines changed: 102 additions & 9 deletions

File tree

README.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<br>
2+
3+
[![Contributors][contributors-shield]][contributors-url]
4+
[![Forks][forks-shield]][forks-url]
5+
[![Stargazers][stars-shield]][stars-url]
6+
[![Issues][issues-shield]][issues-url]
7+
[![MIT License][license-shield]][license-url]
8+
[![Twitter][twitter-shield]][twitter-url]
9+
10+
11+
12+
<br>
13+
14+
<div align="center">
15+
<a href="https://github.com/the-1Riddle/packageInstallationHub">
16+
</a>
17+
18+
<h3 align="center">Package Installation Hub</h3>
19+
20+
<p align="center">
21+
Find alll your installation scripts on one place!
22+
<br />
23+
<a href="https://github.com/the-1Riddle/packageInstallationHub"><strong>Explore the docs »</strong></a>
24+
<br />
25+
<br />
26+
<a href="https://github.com/the-1Riddle/packageInstallationHub">View Demo</a>
27+
·
28+
<a href="https://github.com/the-1Riddle/packageInstallationHub/issues">Report Bug</a>
29+
·
30+
<a href="https://github.com/the-1Riddle/packageInstallationHub/discussions">Request Feature</a>
31+
</p>
32+
</div>
33+
34+
35+
[contributors-shield]: https://img.shields.io/github/contributors/the-1Riddle/packageInstallationHub.svg?style=for-the-badge
36+
[contributors-url]: https://github.com/the-1Riddle/packageInstallationHub/graphs/contributors
37+
[forks-shield]: https://img.shields.io/github/forks/the-1Riddle/packageInstallationHub.svg?style=for-the-badge
38+
[forks-url]: https://github.com/the-1Riddle/packageInstallationHub/network/members
39+
[stars-shield]: https://img.shields.io/github/stars/the-1Riddle/packageInstallationHub.svg?style=for-the-badge
40+
[stars-url]: https://github.com/the-1Riddle/packageInstallationHub/stargazers
41+
[issues-shield]: https://img.shields.io/github/issues/the-1Riddle/packageInstallationHub.svg?style=for-the-badge
42+
[issues-url]: https://github.com/the-1Riddle/packageInstallationHub/issues
43+
[license-shield]: https://img.shields.io/github/license/the-1Riddle/packageInstallationHub.svg?style=for-the-badge
44+
[license-url]: https://github.com/the-1Riddle/packageInstallationHub/blob/master/LICENSE.txt
45+
[twitter-shield]: https://img.shields.io/badge/-Twitter-black.svg?style=for-the-badge&logo=twitter&colorB=555
46+
[twitter-url]: https://twitter.com/rezz_code

alx-tools_installation/README.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@
22

33
The file install-tools.sh in this directory contains a script that will install the following tools and programs.
44

5-
1. betty linter&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;7. makefile
6-
2. pycodestyle &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; 8. semi-standard
7-
3. C and C# compilers&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;9. Node 14
8-
4. MySQL 8.0 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;10. puppet-lint
9-
5. installing and activating env&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;11. SQLAlchemy module version
10-
6. mysqlclient &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;12. mysqldb
5+
| | | |
6+
|------------------------------ |--------------------------- |------------------|
7+
| Betty linter | makefile | Flasgger |
8+
| pycodestyle | semi-standard | Flask |
9+
| C and C# compilers | Request module | Node 14 |
10+
| Fabric for Python | puppet-lint | MySQL 8 |
11+
| installing and activating env | SQLAlchemy module version ||
12+
| mysqlclient | MySqldb ||
1113

1214
**Usage:**
1315

@@ -25,5 +27,7 @@ Then you can run the file as follows:
2527
```
2628
./install-tools.sh
2729
```
30+
> [!NOTE]<br>
31+
> Though, Request module will be installed, it has been deprecated since February 2020 - the team is considering alternative to replace this module - however, it’s a really simple and powerful module for practicing web-scraping in JavaScript (and still used a lot in the industry).
2832
2933
**Good Luck.**

alx-tools_installation/install-tools.sh

Lines changed: 46 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ EOF
6767

6868
# installing and activating env
6969
sudo apt-get install -y python3.8-venv
70-
python3 -m venv venv
70+
python3 -m venv venv
71+
# shellcheck source=/dev/null
7172
source venv/bin/activate
7273

7374
# installing mysqldb
@@ -110,9 +111,51 @@ sudo npm install -y semistandard --global
110111
# installing make
111112
sudo apt-get install -y make
112113

113-
# on successful instalation printf
114+
# Install Fabric for Python 3 - version
115+
pip3 uninstall Fabric
114116

115-
echo "Installation was successfull. You have hacked it 😂 😂"
117+
# Install dependencies
118+
sudo apt-get update
119+
sudo apt-get install -y libffi-dev libssl-dev build-essential python3-dev libpython3-dev
120+
echo "first process complete"
121+
122+
# Install required Python packages
123+
pip3 install pyparsing appdirs
124+
pip3 install setuptools==40.1.0 cryptography==2.8 bcrypt==3.1.7 PyNaCl==1.3.0 Fabric3==1.14.post1
125+
126+
# installing flask
127+
pip3 install Flask
128+
129+
# FLASGGER INSTALLATION
130+
# Install python3-lxml
131+
sudo apt-get install -y python3-lxml
132+
133+
# Install flask_cors if not installed yet
134+
sudo pip3 install flask_cors
135+
136+
# Install flasgger
137+
sudo pip3 install flasgger
116138

139+
# Uninstall and install jsonschema version 3.0.1
140+
sudo pip3 uninstall -y jsonschema
141+
sudo pip3 install jsonschema==3.0.1
117142

143+
# Install pathlib2
144+
sudo pip3 install pathlib2
118145

146+
echo "Installation completed successfully!"
147+
# the version installed
148+
pip freeze | grep flasgger
149+
150+
sleep 2
151+
152+
# installing request module
153+
sudo npm install -y request --global
154+
export NODE_PATH=/usr/lib/node_modules
155+
156+
# message indicating successful execution
157+
echo "Request module installed globally, and NODE_PATH exported."
158+
159+
# on successful instalation printf
160+
161+
echo "Installation was successfull. You have hacked it 😂 😂"

0 commit comments

Comments
 (0)