-
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.
- Loading branch information
Showing
11 changed files
with
117 additions
and
12 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,2 +1,2 @@ | ||
# What is MemServer? | ||
MemServer is an in-memory database/ORM and http mock server you can run in-browser and node environments. Very useful library for large frontend teams, fast tests and rapid prototyping. | ||
MemServer is an in-memory database/ORM and http mock server you can run in-browser and node environments. Extremely useful library for fast tests, rapid prototyping, single-file SPA demo deployments. |
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,4 @@ | ||
- create a cli | ||
- fixtures | ||
- serialization embedding | ||
- factories |
File renamed without changes.
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,2 @@ | ||
export default [ | ||
]; |
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,5 @@ | ||
import { Model } from 'memserver'; | ||
|
||
export default Model.extend({ | ||
|
||
}); |
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,10 @@ | ||
export default function() { | ||
// this.namespace = ''; | ||
|
||
this.get('/photos', () => { | ||
return { | ||
authors: [ | ||
] | ||
}; | ||
}); | ||
} |
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,11 @@ | ||
{ | ||
"name": "photo-album", | ||
"version": "1.0.0", | ||
"description": "", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"author": "", | ||
"license": "ISC" | ||
} |
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,24 @@ | ||
export function start(options) { | ||
// read current path to see if there is memserver | ||
|
||
const MemServer = { | ||
DB: {}, | ||
Models: {}, | ||
Pretender: {}, | ||
Routes: [], | ||
start() { | ||
|
||
}, | ||
shutdown() { | ||
|
||
} | ||
} | ||
|
||
|
||
|
||
return MemServer | ||
} | ||
|
||
|
||
|
||
// BUILD A CLI |
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,29 @@ | ||
export default { | ||
insert(options) { | ||
|
||
}, | ||
bulkInsert(count, options) { | ||
|
||
}, | ||
find(id) { | ||
|
||
}, | ||
where(options) { | ||
|
||
}, | ||
findBy(options) { | ||
|
||
}, | ||
update(record) { | ||
|
||
}, | ||
destroy(record) { | ||
|
||
}, | ||
all() { | ||
|
||
}, | ||
serialize() { | ||
|
||
} | ||
} |
Empty file.