/ meteor

Manually insert users from seed file with accounts-password

One of the easiest way to seed users/admin-user into the system is by running the following on the server when it starts:

Meteor.startup(function() {
  if (Meteor.users.find().count() === 0) {
      username: 'test',
      email: 'me@til.codes',
      password: 'password'
Manu S Ajith

Manu S Ajith

Tech Entrepreneur, dating Elixir, in long-term ❤️ w/ Ruby, had multiple one night stands w/ Go. Into functional paradigms DDD/CQRS/EventSourcing architecture these days. @manusajith on the interwebs

Read More