> ## Content Index
> Fetch the complete content index at: https://til.codes/llms.txt
> Use this file to discover other available public pages before exploring further.

# Manually insert users from seed file with accounts-password
- URL: https://til.codes/seeding-users-in-meteor-js-and-account-password/
- Published: 2015-09-30T01:05:03.000Z
- Updated: 2015-09-30T01:05:30.000Z
- Author: Manu Ajith
- Tags: meteor, meteor.js, js, #Import 2024-07-13 21:01

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) {
    Accounts.createUser({
      username: 'test',
      email: 'me@til.codes',
      password: 'password'
    });
  }
});

```