I’m using RailwayJS, a Node.JS MVC framework based on ExpressJS, fully ExpressJS-compatible. I’m trying to figure out how to add/generate users, but couldn’t find any documentation about it. Does anybody know how?
I’m using RailwayJS , a Node.JS MVC framework based on ExpressJS, fully ExpressJS-compatible. I’m
Share
Do you mean on application startup?
In that case just define a user.js file under /config/initializers
initi your model set the properties and save your model
as example this is how my /config/initializers/user.js looks like
The last statement is just for logging the users that are loaded