Online web based ICTC events database. ..
- Clone this repo.
- Update all submodules using
git submodule update --init --recursive
- Build the backend.
- Create database
- build frontend
- deploy frontend
- To sync new updates
git pull --recurse-submodules
.
cd
into backend- Build using
./gradlew build
- Create required database and give permissions from here. If required, change configuration.
- Check the server using
./gradlew bootRun
Install mysql or mariadb and get into its root shell. Then execute:
mysql> create database dbms_project; -- Create the new database
mysql> create user 'dbms_project'@'localhost' identified by 'ThePassword'; -- Creates the user
mysql> grant all on dbms_project.* to 'dbms_project'@'localhost'; -- Gives all the privileges to the new user on the newly created database
Note: Don't forget to change password in production.
- After building, there wil be a jar file in
build/libs
. - Run that jar file using
java -jar ictc_events.jar
- Check the api fron
http://localhost:8080/
.
cd
into frontend.- install all dependencies
npm install
- build the repo
npm run build
. - collect the static artifacts and deploy into a static server using apache or nginx.