Before run the application, you need to make sure you have following softwares installed in your computer:
- Node.Js + npm
- Mongodb
- Ensure you have Chimera-framework installed as global. You can install chimera-framework by invoking
npm install --global chimera-framework
- Ensure you have git installed. You can install git by invoking
apt-get install git
- Invoke
chimera-init-cms <your-project-name>
- Start the server from inside
<your-project-name>
directorycd <your-project-name> npm start
- Ensure you have git installed. You can install git by invoking
apt-get install git
- Invoke
git clone git@github.com:goFrendiAsgard/chimera-cms.git
- Do migration and start the server from inside
chimera-cms
directorycd chimera-cms npm run-script migrate up npm start
- Run migration by invoking
npm run-script migrate
- Start the server by invoking
npm start
- Invoke
npm run-script migrate up
ornpm run-script migrate
to upgrade - Invoke
npm run-script migrate down
to downgrade - Invoke
npm run-script migrate up [version]
to upgrade to certain[version]
- Invoke
npm run-script migrate down [version]
to downgrade to certain[version]
- Invoke
npm start
- Or invoke
node index.js
- Run migration (
npm run-script migrate up
) - When prompted for superAdmin's username and password, please type
admin
andadmin
- Run the test (
npm test
)
- Install chimera-cms (refer to the installation guide)
- Ensure you have docker and docker-compose installed. You can compose those docker images by invoking
sudo apt-get install docker docker-compose
- Perform
docker-compose up
- Run
docker container ls
to see list of containers, take note for eitherCONTAINER ID
orNAMES
- Run
docker exec -it <container-id-or-name> bash
, where<container-id-or-name>
is either container id or container name ofchimeracms_cms
- Run
node migrate.js
- Perform
docker-compose down
- Run
docker inspect mongo
, take note theIPAddress
- Run
docker exec -it <cms-container-id-or-name> bash
- Run
vim webConfig.json
ornano webConfig.json
- Edit the mongoUrl into
mongodb://<mongo-IPAddress>:27017/test
- Run
docker build -t username/repo -f cms.dockerfile .
- Run
docker login
- Run
docker push username/repo