The Yoruba Dictionary dashboard application is a stand alone AngularJs app that interacts with the backend services.
To function, it needs to be able to send requests to a running backend. The backend source and the instructions on how to run it can be found at https://github.com/Yorubaname/the-yoruba-dictionary
- Clone the project
- Install Nodejs
- Install npm
- Install bower
- cd into the directory where
Gruntfile.js
is located - run
npm install
- run
bower install
The Yoruba Dictionary dashboard can be run in two ways:
- Running directly from source (dev mode)
- Running from bundled source (prod mode)
This mode is probably what you would use when developing. In this mode, the application is started and served using grunt. When changes are made to the code, they are picked up automatically with the browser reloading.
To start the application in this mode follow the following steps:
- cd into the directory where Gruntfile.js is located
- run
grunt serve
the application starts and would be available at http://localhost:9000
This mode involves running the application from the result of building the source: minifying, uglifying etc
Run the application in this mode to confirm that changes made does not break the build and the application still works as expected after the build process.
Follow the following steps to run the application from its built source
- run
grunt devbuild
this would build the application and make it available in./dist
folder - access the files in the
./dist
folder via an http server. An example of http server that can be used is https://www.npmjs.com/package/http-server