All Projects → codeforanchorage → land_acknowledgement

codeforanchorage / land_acknowledgement

Licence: MIT License
Land Acknowledgement SMS Application

Programming Languages

python
139335 projects - #7 most used programming language
Dockerfile
14818 projects
shell
77523 projects

Projects that are alternatives of or similar to land acknowledgement

PokerTexter
SMS App for Poker Odds. Runs on Flask + Twilio + Heroku.
Stars: ✭ 17 (-37.04%)
Mutual labels:  heroku, twilio
jt tools
Ruby on Rails Continuous Deployment Ecosystem to maintain Healthy Stable Development
Stars: ✭ 13 (-51.85%)
Mutual labels:  heroku
protobuf-compiler
online protobuf compiler
Stars: ✭ 24 (-11.11%)
Mutual labels:  heroku
tgmusicbot
Telegram bot for downloading audio from YouTube, SoundCloud & MixCloud.
Stars: ✭ 66 (+144.44%)
Mutual labels:  heroku
Bank-Note-Authentication
💸 Authenticate Bank Notes on the basis of Genuity and Forged using Sklearn and deployed on Heroku and FastAPI Server 💳 💲
Stars: ✭ 17 (-37.04%)
Mutual labels:  heroku
twilio-voice
A Google Voice-like service you can run yourself with Twilio
Stars: ✭ 68 (+151.85%)
Mutual labels:  twilio
django-heroku-skeleton
A modern Django 1.10+ skeleton. Works perfectly with Heroku.
Stars: ✭ 15 (-44.44%)
Mutual labels:  heroku
Mega-index-heroku
Mega nz heroku index, Serves mega.nz to http via heroku web. It Alters downloading speed and stability
Stars: ✭ 165 (+511.11%)
Mutual labels:  heroku
Maintain-Bot
A Telegram Repo For Devs To Controll The Bots Under Maintenance.This Bot Is For Developers, If Your Bot Is Down, Use This Repo To Give Your Dear Subscribers Some Support By Providing Them Response.
Stars: ✭ 46 (+70.37%)
Mutual labels:  heroku
react-landing-page
A landing page in 5 minutes.
Stars: ✭ 26 (-3.7%)
Mutual labels:  heroku
lifebot
Use Google Sheets to log your life by texting it Emojis and pulling in data from Fitbit automatically.
Stars: ✭ 15 (-44.44%)
Mutual labels:  twilio
Django-on-Docker-with-Heroku-and-OpenCV
Deploy Django on Docker to Heroku and include OpenCV
Stars: ✭ 24 (-11.11%)
Mutual labels:  heroku
spring-boot-angular2-starter
Starter application. Spring Boot, Angular 2, TypeScript, Gulp, Gradle, SCSS.
Stars: ✭ 35 (+29.63%)
Mutual labels:  heroku
flask heroku example
How to deploy a Flask application using Heroku
Stars: ✭ 34 (+25.93%)
Mutual labels:  heroku
recurse-community-portfolio
Discover all the things Recursers have built!
Stars: ✭ 13 (-51.85%)
Mutual labels:  heroku
custom-ssh-key-buildpack
🔑 Add an SSH key to you Heroku dyno 🔑
Stars: ✭ 49 (+81.48%)
Mutual labels:  heroku
DaisyX
“ HOLA HUMANS 👋 I'M DAISYX 2.0 heart „ LATEST VERSION OF DAISYX.. Source Code of @Daisyxbot
Stars: ✭ 44 (+62.96%)
Mutual labels:  heroku
auto crawler ptt beauty image
Auto Crawler Ptt Beauty Image Use Python Schedule
Stars: ✭ 35 (+29.63%)
Mutual labels:  heroku
quarantine-bot
WhatsApp bot powered by Twilio API to get through the quarantine. Latest COVID19 statistics, world news, inspirational quotes and cat photos.
Stars: ✭ 24 (-11.11%)
Mutual labels:  twilio
heroku-colorscheme
I was tired to never find the perfect colorscheme, so I decided to do my own.
Stars: ✭ 43 (+59.26%)
Mutual labels:  heroku

Land Acknowledgement SMS App

Land Acknowledgement is a simple api that links data about native lands to current locations.

Data Sources

This project does two basic things:

  • determines a lat/lon from a city/state
  • looks up the native land from that point

Contributions that improve either of these are welcome. Currently the data comes from:

Running locally

Requirements
Docker

To install an run from docker container

git clone https://github.com/codeforanchorage/land_acknowledgement.git  
cd land_acknowledgement  
docker-compose up

This will create docker images and start containers for postgreSQL and a simple python web server. Once running you should be able to make POST requests to localhost:8000/ with something like Postman or curl:

curl -XPOST localhost:8000/ -d Body=Anchorage%2C+ak

In development the webserver, gunicorn, will reload on changes to the code.

To bring service down and remove containers use:

docker-compose down

While the containers are running you can execute and attach a shell environment with:

docker exec -it landak_web sh 

Deploying

Heroku: Add a postgres database add-on. The number of row in the database exceeds the limits for the free tier postgres. This requires at least the Hobby-basic ($9.00/month).

Add postgis extension

Connect to heroku postgres via the cli and add extension with create extension postgis

% heroku pg:psql --app landak
landak::DATABASE=> create extension postgis;

Exit psql with \q

Create backup of local database to restore to heroku

The compressed format --format=c is required for Heroku.

pg_dump --format=c --compress=9 -U postgres postgres  > local_data/data_dump.sql

Upload the compressed sql file to S3(or some other accessible place) and pass it to the Heroku cli

heroku pg:backups:restore https://landak-sql-dump.s3-us-west-2.amazonaws.com/data_dump.sql postgresql-opaque-24019 --app landak

Where postgresql-opaque-24019 would be the name of your actual database and landak the name of your app.

The Dockerfile on the top-level directory will build an image appropriate for Heroku. To build a push this use:

heroku stack:set container --app landak
heroku container:push web --app landak
heroku container:release web --app landak
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].