This is a mern Boilerplate using vite to compile the frontend.
-
The server code is using
import
, currently you have to add the file extension in the server code. -
Note the
index.html
for the code needed to be added for hot reloading and etc... -
Code is setup to use
JWT
auth -
Take a look at the server.js code, there is some es6 things to setup
__dirname
npm install
npm run dev
- setup
.env
file
- .env file
SECRET=seiRocks!
- One terminal
command -
npm run dev