A simple seed project for client/server architecture.
- Nextjs for client.
- Nodejs with expressJs for the server.
cd client
npm i
npm run dev
There are multiple ways to run this project.
-
Run:
cd server
npm i
tsc
[require typescript installed]
node dist/app.js
-
Use vscode
Examplelaunch.json
configuration:
{
"type": "pwa-node",
"request": "launch",
"name": "Launch server",
"skipFiles": ["<node_internals>/**"],
"program": "${workspaceFolder}/server/dist/app.js",
"outFiles": ["${workspaceFolder}/server/**/*.js"],
"preLaunchTask": "tsc: build - server/tsconfig.json",
"env": {}
}