https://github.com/stackbuilders/tiny-python-fullstack
Tiny Python Backend
https://github.com/stackbuilders/tiny-python-fullstack
hiring
Last synced: 10 months ago
JSON representation
Tiny Python Backend
- Host: GitHub
- URL: https://github.com/stackbuilders/tiny-python-fullstack
- Owner: stackbuilders
- License: mit
- Created: 2020-05-13T17:50:11.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-05-22T23:26:37.000Z (over 2 years ago)
- Last Synced: 2025-01-23T04:32:37.748Z (about 1 year ago)
- Topics: hiring
- Language: TypeScript
- Homepage:
- Size: 188 KB
- Stars: 1
- Watchers: 14
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Super tiny and basic Python backend


This application just consumes the [Github Public API](https://developer.github.com/v3/) in order to get a specific user information.
## Setup
### Back-end
Create and activate the virtual environment
```bash
virtualenv venv
source venv/bin/activate
```
Install dependencies
```bash
pip install -r requirements.txt
```
Run the server
```bash
python app.py
```
The server will be up on http://localhost:5000. To try this out just make a POST request to the `/info` endpoint providing any `user` form parameter. Example:
```bash
curl -XPOST 'localhost:5000/info' -d 'user=stackbuilders'
```
### Front-end
Install dependencies
```bash
cd frontend
npm install
```
Run the application (create-react-app):
```bash
npm run start
```
## Requirements
- Python >= 3.6
- Node >= 12.x
## License
[MIT](http://www.opensource.org/licenses/mit-license.html)