Skip to content

Commit

Permalink
Merge pull request #105 from Amialc/master
Browse files Browse the repository at this point in the history
falcor api example now run on 3001 port
  • Loading branch information
mpaktiti committed Jul 29, 2016
2 parents 18a9319 + 3520aff commit 87cee0f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions examples/falcor-api/.env
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
AUTH0_CLIENT_ID=AUTH0_CLIENT_SECRET
AUTH0_CLIENT_SECRET=AUTH0_CLIENT_ID
AUTH0_CLIENT_ID=AUTH0_CLIENT_ID
AUTH0_CLIENT_SECRET=AUTH0_CLIENT_SECRET
2 changes: 1 addition & 1 deletion examples/falcor-api/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ AUTH0_CLIENT_SECRET=myCoolSecret
AUTH0_CLIENT_ID=myCoolClientId
````

Once you've set the two environment variables, just run `node server.js`. The application will run on `localhost:3000`.
Once you've set the two environment variables, just run `node server.js`. The application will run on `localhost:3001`.

You'll need to fetch a JWT and save it in local storage to authenticate a user, and how you implement that on the front end is at your discretion.
4 changes: 2 additions & 2 deletions examples/falcor-api/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,5 @@ app.use('/api/model.json', authenticate, falcorExpress.dataSourceRoute(function(
]);
}));

app.listen(3000);
console.log("Listening on http://localhost:3000");
app.listen(3001);
console.log("Listening on http://localhost:3001");

0 comments on commit 87cee0f

Please sign in to comment.