Node.js + Express.js + Knex.js + MySQL + React + Vite
- Install devtools, frontend and backend packages
-
Create .env file from .env_sample
-
Run database migration
- Start concurrently the dev server and react app
The .env file is located in the backend directory.
Contains:
- database access
- initial demo user
In the project directory, you can run:
Runs migration to define initial table (user) with demo data.
Runs the app in the development mode. Frontend http://localhost:5173 to view it in your browser. Backend http://localhost:3000 to view it in your browser.
The page will reload when you make changes.
Vite builds the frontend app for production to the frontend/dist
folder.