Clone the repository
git clone https://github.com/utmgdsc/UML_Mentor.git
cd UML_Mentor
Install the dependencies
npm install
cd client
npm install
Run the client in dev mode
npm run dev
Go to server/index.js
and uncomment line 18
await importChallenges();
Open a new terminal and run the server in dev mode (execute from root directory).
npm run devStart
The challenges are now imported from the challenges.json
into the SQLite database. You should now uncomment line 18 to avoid import errors in the future runs. Alternatively, you can pass the true
parameter to tell the function to reimport challenges on every run (not recommended).
// await importChallenges();
Access the app via the client port 3000
. All of the client requests starting with /api
are redirected to the server 8080
.
For Eren to do.