CodeRoom is a online code storage project built with Spring. With OpenAI, CodeRoom allowed users to create their code just using some simple words. In addition, auto-annotation and time complexity calculator built by AI are also included in the project.
CodeRoom is built in Spring with a MySQL database. OpenAI API is applied in this project for code translation and time complexity calculation. The server ran with OpenAI API is built seperately in Node.js which can be used in another project.
CodeMirror is also used as a code editor package which allow user to edit multiple languages in the CodeRoom.
Spring and Node.js are needed to open the project. For the OpenAI API, the api key can be applied through OpenAI, update the variable OPENAI_API_KEY in openai.controller.js. Start the OpenAI API server in Node with
cd server
nodemon server.js
In Spring Tool suite, install dependencies and start the full stack application.