Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make it work on Windows #21

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
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
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@
],
"main": "babel.server.js",
"scripts": {
"start": "NODE_PATH=\"./src\" NODE_ENV=\"production\" PORT=\"8080\" node ./babel.server",
"start": "SET NODE_PATH=./src && SET \"NODE_ENV=production\" && SET PORT=8080 && node ./babel.server",
"build": "node ./node_modules/webpack/bin/webpack.js --verbose --colors --display-error-details --config webpack/prod.config.js",
"lint": "node ./node_modules/eslint/bin/eslint.js -c .eslintrc src",
"start-dev": "NODE_PATH=\"./src\" NODE_ENV=\"development\" node ./babel.server",
"watch-client": "NODE_PATH=\"./src\" node webpack/webpack-dev-server.js",
"start-dev": "SET NODE_PATH=./src && SET \"NODE_ENV=development\" && node ./babel.server",
"watch-client": "SET NODE_PATH=./src && node webpack/webpack-dev-server.js",
"dev": "node ./node_modules/concurrently/src/main.js --kill-others \"npm run watch-client\" \"npm run start-dev\""
},
"dependencies": {
Expand Down
4 changes: 2 additions & 2 deletions src/ApiClient.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*global __SERVER__*/
import superagent from 'superagent';
import config from 'config';
import config from './config';

function formatUrl(path) {
let adjustedPath = path[0] !== '/' ? '/' + path : path;
Expand All @@ -12,7 +12,7 @@ function formatUrl(path) {
return '/api' + adjustedPath;
}

export default class ApiClient {
export default class {
constructor(req) {
['get', 'post', 'put', 'patch', 'del'].
forEach((method) => {
Expand Down
8 changes: 4 additions & 4 deletions src/views/routes.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import React from 'react';
import {Route} from 'react-router';
import App from 'views/App';
import Home from 'views/Home';
import SignUp from 'views/SignUp';
import Login from 'views/Login';
import App from './App';
import Home from './Home';
import SignUp from './SignUp';
import Login from './Login';

export default (
<Route component={App}>
Expand Down