HectorPulido / nlu-brain-api

This is an API made with django that uses Snips NLU to understand the user's intent, contains a database to store the user's data and a web server to serve the user's data.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NLU BRAIN API WITH DJANGO

This is an API made with django that uses Snips NLU to understand the user's intent, contains a database to store the user's data and a web server to serve the user's data.

Features

TODO

How it works

This is a heroku based project

Setup Django

  1. Configure your heroku project, save the name, you will need the Heroku Postgresql addon

  2. Build the docker development and run it to make sure everything is ok

docker build -t web:latest .
docker run -d --name <herokuname> -e "PORT=8765" -e "DEBUG=0" -p 8007:8765 web:latest
  1. You can deactivate like this
docker stop <herokuname>
docker rm <herokuname>
  1. You can upload your project with this commands
docker run -d --name <herokuname> -e "PORT=8765" -e "DEBUG=0" -p 8007:8765 web:latest
heroku container:login
heroku container:push web -a <herokuname>
heroku container:release web -a <herokuname>
  1. Create your user with
heroku run python manage.py createsuperuser -a <herokuname>
  1. Enter to your proyect from this url
http://<herokuname>.herokuapp.com/admin
  1. Create an Key to interact with the API

  2. You are ready

More interesting projects

I have a lot of fun projects, check this:

Machine learning

Games

Random

Licence

This proyect uses Django, tweepy, dropbox libraries, also was made to work with heroku but everything else was totally handcrafted by me, so the licence is MIT, use it as you want.

Let's connect 😋

Hector's LinkedIn     Hector's Twitter     Hector's Twitch     Hector's Youtube    

About

This is an API made with django that uses Snips NLU to understand the user's intent, contains a database to store the user's data and a web server to serve the user's data.

License:MIT License


Languages

Language:Python 97.3%Language:Dockerfile 2.7%