-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from Justkant/develop
Fix production build
- Loading branch information
Showing
29 changed files
with
577 additions
and
442 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,14 @@ | ||
language: node_js | ||
|
||
node_js: | ||
- "4.1" | ||
- "4.0" | ||
- "4" | ||
|
||
sudo: false | ||
|
||
cache: | ||
directories: | ||
- node_modules | ||
|
||
before_script: | ||
- export DISPLAY=:99.0 | ||
- sh -e /etc/init.d/xvfb start |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
function getProducts(req, res) { | ||
|
||
} | ||
|
||
function getProduct(req, res) { | ||
|
||
} | ||
|
||
function addProduct(req, res) { | ||
|
||
} | ||
|
||
function updateProduct(req, res) { | ||
|
||
} | ||
|
||
function deleteProduct(req, res) { | ||
|
||
} | ||
|
||
function search(req, res) { | ||
|
||
} | ||
|
||
const products = { | ||
getProducts: getProducts, | ||
getProduct: getProduct, | ||
addProduct: addProduct, | ||
updateProduct: updateProduct, | ||
deleteProduct: deleteProduct, | ||
search: search | ||
}; | ||
|
||
export default products; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
function login(req, res) { | ||
console.log(req); | ||
res.send({name: 'kant', token: 'bite'}); | ||
} | ||
|
||
function getUsers(req, res) { | ||
} | ||
|
||
function getUser(req, res) { | ||
} | ||
|
||
function addUser(req, res) { | ||
console.log(req); | ||
res.send({name: 'kant', token: 'bite'}); | ||
} | ||
|
||
function updateUser(req, res) { | ||
} | ||
|
||
function deleteUser(req, res) { | ||
} | ||
|
||
const users = { | ||
login: login, | ||
getUsers: getUsers, | ||
getUser: getUser, | ||
addUser: addUser, | ||
updateUser: updateUser, | ||
deleteUser: deleteUser | ||
}; | ||
|
||
export default users; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.