- Navigate to the
backenddirectory. - Run
npm installto install dependencies. - Set
DATABASE_URLin.envfile with your new MySQL connection string. - Run
npx prisma generateto generate Prisma client. - Run
npx prisma migrate deployto apply migrations to your MySQL database. - Import your old SQL dump (e.g.,
nekretnina.sql) into a temporary MySQL database (e.g.property_baza). - Run
ts-node scripts/migrateData.tsto migrate data from the old database to the new Prisma database. - Run
npm run devto start the backend server.
- Navigate to the
frontenddirectory. - Run
npm installto install dependencies. - Run
npm startto launch the React development server. - Open your browser and visit
http://localhost:3000
- Ensure the backend is running on port 4000 (default) before running the frontend.
- Ensure CORS is enabled in backend (already configured).
For any issues, contact support.