Automate app containerization.
-
A working
Node
environment. -
An installation of the
yarn
package manager. -
Install the above if you have to.
-
Install dependencies:
yarn install
or simplyyarn
. -
Create a
.env
file and add these values:PORT=5000
. -
Start server:
node index.js
ornodemon
if you have nodemon installed. -
To stop the server:
ctl + c
.
-
Request `POST /` `Content-Type: multipart/form-data` `payload: { files: file (any html file), name: string, tag: string (version), framework: string (use html for now), token: string (log into crane cloud and get token), project: string (any active project in your account) }` Response
201
Content-Type: application/json
body: { status: string, data: object }
The API will be standardized with time. Doesn't need a DB.