Skip to content
This repository was archived by the owner on Nov 21, 2020. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions devServer.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
var path = require("path");
var KintoClient = require("kinto-http");
var express = require("express");
var webpack = require("webpack");

Expand All @@ -23,6 +24,9 @@ app.get("/react-jsonschema-form.css", function(req, res) {
res.sendFile(path.join(__dirname, "css", "react-jsonschema-form.css"));
});

var url = process.env.SERVER_URL || "http://localhost:8888/v1/"; // I would like to get this from config, but been unable so far.
new KintoClient(url); // This will simply check the URL format over Kinto Standards

app.listen(port, "localhost", function(err) {
if (err) {
console.log(err);
Expand Down