margierain / eventmanager Goto Github PK
View Code? Open in Web Editor NEWPlan your event right
Plan your event right
eventManager/app/middleware/index.js
Line 37 in f561c24
eventManager/app/controllers/events.js
Line 116 in f561c24
If i wanted to update my name, will there be an update name controller function
eventManager/app/controllers/users.js
Line 1 in f561c24
eventManager/app/routes/roles.js
Line 9 in f561c24
eventManager/app/controllers/events.js
Line 178 in f561c24
Example
[Event Controller]
function deleteEvent(req, res) {
DeleteService.delete(some-event-id);
return res.status(200) .. with some message
}
[Delete Service]
function Delete(id) {
const result = EventRepository.delete(id)
If(result === some failure)
throw SOMEEXCEPTION;
}
[SOMEEXCEPTION]
This basically handles the exception and decides what one can send back to the user depending on whether your on prod qa dev or test
We can talk about this
eventManager/app/utils/index.js
Line 13 in f561c24
Besides doing many things:
eventManager/app/models/users.js
Line 78 in f561c24
In the spirit of SRP, maybe it should be on its own service.
eventManager/app/routes/events.js
Line 9 in f561c24
eventManager/app/middleware/index.js
Line 9 in f561c24
What about the structure of an email, telephone number etc.
eventManager/app/routes/roles.js
Line 1 in f561c24
eventManager/app/controllers/events.js
Line 94 in f561c24
eventManager/app/controllers/roles.js
Line 3 in f561c24
Line 4 in f561c24
Maybe it should be an environment variable or something else
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.