An open API service indexing awesome lists of open source software.

https://github.com/app-generator/deploy-automation-render

Open-Source Wrapper over the Render Platform API | AppSeed
https://github.com/app-generator/deploy-automation-render

appseed ci-cd deployment

Last synced: 12 months ago
JSON representation

Open-Source Wrapper over the Render Platform API | AppSeed

Awesome Lists containing this project

README

          

# [Render API Wrapper](https://www.youtube.com/watch?v=RRbmOhTzkYo) - `Python`

Python wrapper for [Render](https://render.com/) Deployment API - actively supported by **[AppSeed](https://appseed.us/)**.


> `Roadmap` - see [VIDEO Presentation](https://www.youtube.com/watch?v=RRbmOhTzkYo)

| Item | Python | Info |
| --- | --- | --- |
| Deploy Static Site | ✅ | [docs](./docs/deploy-static.md) |
| Deploy Web Service `Flask` | ✅ | [docs](./docs/deploy-flask.md) |
| Deploy Web Service `Django` | ✅ | [docs](./docs/deploy-django.md) |
| Deploy Web Service `NodeJS` | ✅ | [docs](./docs/deploy-nodejs.md) |
| --- | --- | --- |
| `AppSeed Specific` | --- | --- |
| Deploy `Flask API` Service | ✅ | [docs](./docs/deploy-flask-api.md) |
| Deploy `Django API` Service | ✅ | [docs](./docs/deploy-django-api.md) |
| Deploy `NodeJS API` Service | ✅ | [docs](./docs/deploy-nodejs-api.md) |
| Deploy `FullStack` Service | ✅ | [docs](./docs/deploy-fullstack.md) |


## How to use it

> Install modules

```bash
$ virtualenv env
$ source env/bin/activate
$ pip install -r requirements.txt
```


### Export Variables

> Unix / MacOs `environment`

```bash
$ export RENDER_API_KEY= # mandatory
$ export RENDER_OWNER_ID= # optional
$ export RENDER_BUILDER='yarn' # optional, , defaults to NPM
$ export DEBUG=1 # enables verbose output
```


> Windows CMD `environment`

```bash
$ set RENDER_API_KEY= # mandatory
$ set RENDER_OWNER_ID= # optional
$ set RENDER_BUILDER='yarn' # optional, , defaults to NPM
$ set DEBUG=1 # enables verbose output
```


> Windows Powershell `environment`

```bash
$ $env:RENDER_API_KEY = "" # mandatory
$ $env:RENDER_OWNER_ID = "" # optional
$ $env:RENDER_BUILDER = "yarn" # optional, , defaults to NPM
$ $env:DEBUG = "1" # enables verbose output
```


### EXEC API

| Item | Info | Sample Output | HELP |
| --- | --- | --- | --- |
| `python deployer.py` | CLI Help | `Usage: runner.py COMMAND ARGS` | - |
| `python deployer.py check` | Print API_KEY | `rnd_TgN***` | - |
| `python deployer.py all_owners` | Print all owners | `['usr-cct***', 'tea-cct***']` | - |
| `python deployer.py owner` | Get First Owner | `rnd_TgN***` | - |
| --- | --- | --- | - |
| `python deployer.py nodejs REPO_URL` | Deploy NodeJS | `> Deploy [dep-cdg***]` | - |
| --- | --- | --- | - |
| `python deployer.py django REPO_URL` | Deploy Django | `> Deploy [dep-cdg***]` | - |
| --- | --- | --- | - |
| `python deployer.py flask REPO_URL` | Deploy Flask | `> Deploy [dep-cdg***]` | - |
| --- | --- | --- | - |
| `python deployer.py static REPO_URL` | Deploy React, Vue | ` > Deploy ID [dep-cdg***]` | - |
| --- | --- | --- | - |
| `python deployer.py nodejs_api ` | Repo [NodeJS API](https://github.com/app-generator/api-server-nodejs) | `> Deploy [dep-cdg***]` | [docs](./docs/deploy-nodejs-api.md) |
| `python deployer.py flask_api ` | Repo [Flask API](https://github.com/app-generator/api-server-flask) | `> Deploy [dep-cdg***]` | [docs](./docs/deploy-flask-api.md) |
| `python deployer.py django_api ` | Repo [Django API](https://github.com/app-generator/api-server-django) | `> Deploy [dep-cdg***]` | [docs](./docs/deploy-django-api.md) |


## Flask Sample

### Flask Star Admin

> In order to have a successful deploy, the environment should contain `API_KEY` and `OWNER_ID` (credit card attached)

```bash
$ python.exe .\deployer.py flask https://github.com/app-generator/flask-star-admin
```

In the above sample, "run:app" is used as `WSGI` entry point.


---
[Render API Wrapper](https://www.youtube.com/watch?v=RRbmOhTzkYo) - Free Tool provided by [AppSeed](https://appseed.us/)