Chemically peculiar (CP) stars are the subject of astronomical research in recent decades in particular. Their nature makes them classifiable on different levels of certainty, creating inconsistent sets of stars.
CP-Stars application offers simple access to the list of Ap, HgMn and Am stars.
There is also graphical user interface implemented and Python library exists in order to provide another way to access the database.
In order to run the application, PostgreSQL database has to be present. Copy of the database is available in the project's root directory (cpstars.sql).
After downloading the file, following commands can be used to initialize the database:
1.) Create database (Postgres terminal):
CREATE DATABASE cpstars;
2.) Initialize database using the downloaded file (using default Postgres user role)
psql -U postgres -d cpstars -f ./cp-stars/files/cpstars.sql
IMPORTANT: steps may not work the same way on different operating system.
When the database was successfully initialized, we may proceed and run the application. In case different Postgres role is used for database access, it should be defined in application.yml file.
If default postgres settings were used and you have downloaded JAR file, you may skip following part and head right into this section.
After configuring all the needed properties, go to the project root directory:
cd cp-stars
Run the following Maven command to install the application into local Maven repository:
mvn clean install
By default, the application should be installed into .m2 folder located in the home folder. After that, execute the following command to run the CP-Stars application:
java -jar ~/.m2/repository/cz/muni/fi/cp-stars/0.0.1-SNAPSHOT/cp-stars-0.0.1-SNAPSHOT.jar
In case you have downloaded prepared JAR file directly, you may run the application using following command:
java -jar <PATH_TO_JAR>