Skip to content

Instantly share code, notes, and snippets.

image: node:10
pipelines:
branches:
master:
- step:
name: 'Build app'
caches:
- node
script:
//Install express server
const express = require('express');
const path = require('path');
const bodyParser = require('body-parser');
const app = express();
app.use(bodyParser.urlencoded({ extended: false }));
app.use(bodyParser.json());
{
"name": "server",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"start": "node index.js"
},
"author": "",
"license": "ISC",