- Tomcat 9
- Maven
- MySQL 8
- sef-core
- Sef core includes APIs and the admin dashboard for the academic application. In order to work with academix-frontend, you need to build sef-core and deploy it on tomcat (core.war and dashboard.war). Follow instructions in sef-core to build it.
-
Clone your forked academix-frontend repository
git clone https://github.com/USERNAME/academix-frontend cd academix-frontend
-
Build the project using maven
mvn install
-
Copy the generated
.war
file to the tomcat's webapp directory.cp target/academix.war /path/to/tomcat/webapps
-
You can access the UI with http://localhost:8080/academix
- [Build the project](#Building the project) and deploy it to the tomcat.
- Navigate to the app's dist directory
cd app/dist
- Remove the contents of the dist directory.
rm -rf *
- Create the symlinks as follows.
ln -s /path/to/symlinks/tomcat/webapps/academix/index.html ln -s /path/to/symlinks/tomcat/webapps/academix/main.js ln -s /path/to/symlinks/tomcat/webapps/academix/main.js.map ln -s /path/to/symlinks/tomcat/webapps/academix/main.css ln -s /path/to/symlinks/tomcat/webapps/academix/main.css.map
This will rebuild the app and update the deployed application on the tomcat because it has been linked with symlinks.
cd app/
npm run build
(You should create the symlinks first)
Run the watch command,
cd app/
npm run watch
This will watch files and recompile whenever they change.
(You should create the symlinks first)