Skip to content

Commit

Permalink
Chore (#11)
Browse files Browse the repository at this point in the history
* doc(start): Document the install and start commands

* chore(ci/cd): Remove unneeded scripts
  • Loading branch information
annelhote authored Mar 11, 2024
1 parent 5c435f1 commit 45962a7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
# DOADIFY
# DATASUPR

## Development

Doadify is fully functional in development.
DatasupR is fully functional in development.

Simply run : `npm start`
To install it : `npm i`
To run it locally : `npm start`

And the project should be available via your favorite browser at http://localhost:5173/.


## Build for production

The react client app is served by the node server in production.
Vite build creates a build in `/dist` folder. This folder has to be moved to the `/server` folder.
Vite build creates a build in `/dist` folder. This folder has to be moved into the `/server` folder.
5 changes: 1 addition & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,9 @@
"client": "npm -w client run dev",
"client:docker": "npm -w client run dev:docker",
"dev": "concurrently \"npm run server\" \"npm run client\"",
"dev-win": "concurrently \"npm run server-win\" \"npm run client\"",
"dev:docker": "concurrently \"npm run server\" \"npm run client:docker\"",
"preview": "npm run build --mode=${npm_config_mode} && npm -w server start",
"server": "npm -w server run dev",
"server-win": "npm -w server run dev-win",
"start": "npm run dev",
"start-win": "npm run dev-win"
"start": "npm run dev"
}
}
2 changes: 0 additions & 2 deletions server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
"type": "module",
"scripts": {
"dev": "NODE_ENV=development nodemon --experimental-specifier-resolution=node index.js",
"dev-win": "SET NODE_ENV=development & nodemon --experimental-specifier-resolution=node index.js",
"start": "NODE_ENV=production node --experimental-specifier-resolution=node index.js",
"start-win": "SET NODE_ENV=production & node --experimental-specifier-resolution=node index.js"
},
"author": "doad",
"license": "MIT",
Expand Down

0 comments on commit 45962a7

Please sign in to comment.