Web API for the Votatoon client.
383
Votatoon API is an Open-Source web server for the Votatoon client.
In order for setting up the Votatoon API, you will need to set up the following environment variables:
1 for development and first set up of the application, and 0 for productionIMPORTANT:
INIT_VECTOR and SECURITY_KEY environment variables by using online tools like All Keys Generator.INIT_VECTOR and SECURITY_KEY must be 512-bit, must have 32 characters and cannot be hex (unless they're 256-bit).INIT_VECTOR and SECURITY_KEY environment variables.export command.", ', $ and ! in the values of the environment variables.Windows:
Settings > System > About > Advanced system settings > Environment Variables.New... button.You have to follow steps 3 and 4 per environment variable.
Linux:
Before starting, you must know that you can use the export command to set environment variables on Linux, but they may not be available after you leave your current session, so maybe you will want to set the environment variables using .(bash/zsh)_profile file.
export command followed by the key-value pair (like .env files). F.E To set DATABASE_NAME environment variable, you must use the command export DATABASE_NAME={{Database name}} (without {{}})..(bash/zsh)_profile to set the environment variables, you have to use the command source path/to/profile/file/.(bash/zsh)_profile, so your current session in the terminal will be updated with the new set environment variables.For more information about setting environment variables on Linux, you can check out this tutorial.
This application needs port 3000 by default for running on, but if you want to use a different port, you can set it by setting the environment variable PORT.
Note that this behavior allows you to deploy your own instance using a VPS/PaaS like Heroku or Digital Ocean.
Once you have running the application, you can go to http://<address of host where you're running the application>:<port where you're running the application>/api to see the API documentation, so you can understand how this application works when it receives any request.
Content type
Image
Digest
sha256:2c09d2052…
Size
70.2 MB
Last updated
over 3 years ago
docker pull juansecu/votatoon-api