A tool for auto-posting on social media networks.
π‘ The environment variables are automatically retrieved from the
.env
file and registred to theprocess.env
object for access during development. Use.env-tmp
file as reference to make own personal.env
file.
π‘ It is advised to not push the
.env
file in production repository, because it contains sensible and confidential data. either delete it or add it to.gitignore
.
To deploy the project in a node environment:
- Push the repository to a node production server using a service like Heroku.
π‘ As this is not an HTTP Web app, but a worker process, the service should be set for that.
βΉοΈ For Heroku run
heroku ps:scale web=0 worker=1 -a app-name
in the CLI.
π‘
worker
corresponds to the name given in theProcfile
file.
- Manually register the environment variables in the node production server
βΉοΈ For Heroku, go to the app's Settings / Config Vars.
- Install the dependencies:
npm i
- Start server for production:
npm start
- Runtime: NodeJS
- Package Manager: NPM
- Editor: Sublime Text
- βοΈ Core: NodeJS