campusM AEK Example Projects
You must be set up with the AEK to run these example projects. Instructions for this can be found here.
Running Projects Locally
- Clone the campusm-aek repo locally.
- From the terminal, go into the folder/project you want to run (each folder in this repo is its own AEK project).
- Run the following from the terminal in the base directory of the AEK project.
- Enter your login details (you will be prompted for this in the terminal).
- Open the AEK project in your preferred editor, e.g. Visual Studio Code.
- Navigate to the package.json file and update the hostname to your app's hostname. Here is an example of what this would look like in the package.json.
- Start the AEK project from the terminal.
Once these steps are done, you should see the project running on http://locahost:5000.
Corresponding blogs to these projects can be found in the Ex Libris Developer Network here.
Deploying Projects to Your App Manager Environment
- Rename the parent folder of the AEK project. For example, if you are trying to deploy the exlib-local-weather-forecast project, rename this folder. We suggest starting project names with your school's abbreviation, e.g. cu-local-weather-forecast.
- In the project's package.json, change the name of the project to the same name as the parent folder, leaving the @ombiel/ portion of the name. Here is an example of what this would look like in the package.json
- From the terminal, go into the folder/project you want to deploy and run the following.
Note: The next time you need to deploy changes, you will need to run aek deploy -n to indicate there is a new version that needs to be deployed. The terminal will prompt you to bump the version. You must complete this to see your changes once you deploy.
- Complete the prompts in the terminal. Once you've gone through the prompts, look for info: Deploy Successful in the terminal.
- Verify in App Manager that the project was deployed by going to AEK > AEK Screens > look and see if your project is now listed.
- Link the AEK project to a tile by going to AEK > AEK Menu Options > click Add AEK menu option. Add a Description, set the appropriate Roles for the new AEK tile. Then click Add Toolbar Item. Fill in the Label and set the Screen to the project you just deployed. Click Save.
- Publish your new AEK tile by going to AEK > AEK Publishing > check the Publish All box > click Publish.
- Go to the app and verify that you can see your new AEK tile.
- If you are seeing a version error when trying to deploy, you need to bump your version in the package.json.
- If you are getting a Git error when trying to deploy, you need to commit your changes.
- If you are getting a forbidden error when trying to deploy, you may not have the correct AEK permissions. Someone from your team or from Ex Libris will need to verify your permissions within App Manager.
- If you are seeing a successful deploy message, but your changes aren't showing in the app, you probably didn't bump the version number. Deploy again with an updated version number, then you should see your changes.