When first starting Colmena it’s useful to import the sample data.
In order to get some sample data in the database we run the
npm run initdb command:
npm run initdb
💡 This assumes you are running Colmena connected to MongoDB. If you are using the in-memory database you need to run the sample data on server start by setting
config.yaml, or by setting the environment variable
After installation and configuration you can start Colmena by running the following command from the project root:
npm run dev
You should now see the Colmena API and Admin starting.
When the admin is built it can be accessed on http://127.0.0.1:9000.
Sometimes it can be useful to run the API and Admin in separate terminals.
To start only the API move into the director and run
npm run dev:
cd apps/api npm run dev
To start only the Admin move into the director and run
npm run dev:
cd apps/admin npm run dev
When there are no build errors in the log, and you see the message
Webpack: Compiled successfully. you should be able to log in on http://127.0.0.1:9000. Because the server is running in development mode, the default credentials will be displayed.
After logging in you should see the sample content like pages, files, etc that are all part of the defailt ‘domain’.
If you are stuck please refer to the support page