Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 30e0c03074 |
14
Dockerfile
14
Dockerfile
@ -1,14 +0,0 @@
|
|||||||
FROM python:2
|
|
||||||
MAINTAINER André Almeida "andre@andrealmeida.net"
|
|
||||||
|
|
||||||
WORKDIR /usr/src/app
|
|
||||||
|
|
||||||
COPY requirements.txt ./
|
|
||||||
RUN pip install --no-cache-dir -r requirements.txt
|
|
||||||
|
|
||||||
COPY . .
|
|
||||||
|
|
||||||
EXPOSE 5000
|
|
||||||
|
|
||||||
ENTRYPOINT [ "python" ]
|
|
||||||
CMD [ "raspberry-pi-web-info/api.py" ]
|
|
||||||
25
README.md
25
README.md
@ -1,7 +1,5 @@
|
|||||||
# Raspberry | Pi
|
# Raspberry | Pi
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
Middleware in python2.7 to show some information about your Raspberry Pi:
|
Middleware in python2.7 to show some information about your Raspberry Pi:
|
||||||
|
|
||||||

|

|
||||||
@ -42,12 +40,8 @@ and you need to install extra dependencies like:
|
|||||||
### Prerequisites
|
### Prerequisites
|
||||||
|
|
||||||
Install python2.7 - https://www.python.org/download/releases/2.7/
|
Install python2.7 - https://www.python.org/download/releases/2.7/
|
||||||
|
|
||||||
Install pip - https://pip.pypa.io/en/stable/
|
Install pip - https://pip.pypa.io/en/stable/
|
||||||
|
|
||||||
(optional)
|
|
||||||
|
|
||||||
Install docker - https://www.docker.com
|
|
||||||
|
|
||||||
### Installing
|
### Installing
|
||||||
|
|
||||||
@ -57,13 +51,6 @@ Please, use the following command to install the requirements packages for this
|
|||||||
pip install -r requirements.txt
|
pip install -r requirements.txt
|
||||||
```
|
```
|
||||||
|
|
||||||
if you prefeer, use docker:
|
|
||||||
|
|
||||||
```
|
|
||||||
docker build -t raspberry-project .
|
|
||||||
docker run -p 5000:5000 raspberry-project
|
|
||||||
```
|
|
||||||
|
|
||||||
## Deployment
|
## Deployment
|
||||||
|
|
||||||
|
|
||||||
@ -77,7 +64,6 @@ Navigate to 127.0.0.1:5000 in your browser and the credentials are:
|
|||||||
- admin
|
- admin
|
||||||
- admin
|
- admin
|
||||||
|
|
||||||
If you prefeer, you can navigate or use the [POSTMAN](https://www.getpostman.com) to get the information via JSON: 127.0.0.1:5000/readpietojson
|
|
||||||
|
|
||||||
## Built With
|
## Built With
|
||||||
|
|
||||||
@ -90,13 +76,4 @@ Please read [CONTRIBUTING.md](CONTRIBUTING.md) for details on my code of conduct
|
|||||||
|
|
||||||
## Versioning
|
## Versioning
|
||||||
|
|
||||||
I use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://gitlab.andrealmeida.net/public_projects/vagrant/tags).
|
I use [SemVer](http://semver.org/) for versioning.
|
||||||
|
|
||||||
## Authors
|
|
||||||
|
|
||||||
[](https://andrealmeida.net)
|
|
||||||
|
|
||||||
## License
|
|
||||||
|
|
||||||
This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details
|
|
||||||
|
|
||||||
Loading…
Reference in New Issue
Block a user