FarAI is an AI-driven personal development coach that leverages personality assessments to generate custom-tailored recommendations, derived from user prompts, designed to enhance personal development in the workplace. This coach is adept at comprehending your distinct personality, career aspirations, and workplace hurdles, offering personalised guidance and a wealth of resources to foster career advancement and overall well-being.
You will need two separate API keys for the application to work:
OpenAI API key
To obtain an API key to talk to FarAI, sign up on the OpenAI website follow the instructions to obtain an API key at OpenAI.
Personality Quest API key
To obtain an API key for the personality quiz, sign up for a Rapid API account and subscribe to a plan provided by Personality Quest API at RapidAPI.
- Install IntelliJ or another suitable IDE for JDK 17.
- Install PostgreSQL. If using the command line on MacOS and have homebrew installed use
brew install postgresql
. - Clone the repository from GitHub. If using the command line
git clone {HTTP/SSH URL}
- Open the
server
directory in your IDE. - Create a new
.env
file insrc/main/java/resources
directory and add the API keys in the format below. Make sure the API keys are a String. See.env.example
as an example.
openai.api_key="OPENAPI KEY"
personality_quest.api_key="Personality Quest API KEY"
- Create a database with this command
createdb peregrine_db
. See theapplication.properties
file for the path that the application requires to access the database - Run the application from the
ServerApplication
file. - The server will run on the default port
8080
unless you have configured java applications to run on a different port.
- Install VSCode of another suitable IDE.
- Install node.
- Open
front-end-client
in VSCode or navigate to that directory in command line. - Run
npm install
to install the neccessary node_modules. - Within your IDE or command line run
npm run dev
to start the front-end-client. - This will run on port
5173
. If not running on that port return to the command line and Vite will tell you what port the client is running on. - In your browser go to http://localhost:5173/LoginPage and create a new user and follow the account setup instructions.
- To skip the new user creation features use the example user login details:
email: John@gmail password: password123