Instructions:
- Copy and paste the
server.js
into a new folder calledgenart
or whatever - Run
npm init -y
to generate apackage.json
- Install the dependencies:
npm install body-parser openai express canvas dotenv
With ASDF, you can manage version of Node, Yarn, PNPM, PHP, Python, and more than 400 other tools, languages and binaries.
Uninstall nvm
Install asdf
Install nodejs
plugin for asdf
Add legacy_version_file = yes
to ~/.asdfrc
file
Install gnupg
Note:
When this guide is more complete, the plan is to move it into Prepack documentation.
For now I put it out as a gist to gather initial feedback.
If you're building JavaScript apps, you might already be familiar with some tools that compile JavaScript code to equivalent JavaScript code:
Python syntax here : 2.7 - online REPL
Javascript ES6 via Babel transpilation - online REPL
import math
#!/bin/sh | |
for x in `heroku config`; do | |
if [[ $x == HUBOT* ]]; then | |
name=$x | |
elif [ $x != '=>' ]; then | |
value=$x | |
export $name=$value | |
fi | |
done |
// Place user-specific overrides in this file, to ensure they're preserved | |
// when upgrading | |
{ | |
"folder_exclude_patterns": [".svn", ".git", ".hg", "CVS", "node_modules"] | |
} |