chore: NPM Workspaces and scripts (#244)

* chore: NPM Workspaces and scripts
- Allows everything to be run in the root directory

* chore:Update package-lock after workspace change

* docs: Minor docs typo fix
- most people run in dev mode, ie vite runs the server, this defaults to that method
This commit is contained in:
LaraClara 2023-05-12 23:40:14 +10:00 committed by GitHub
parent 8bb4d7d590
commit 95c97561ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 26511 additions and 50 deletions

View file

@ -66,15 +66,13 @@ You will need all your credentials, (API keys, access tokens, and Mongo Connecti
### Run the app
#### Using the command line
### Using the command line (in the root directory)
- **Run** `npm ci` in the "C:/chatgpt-clone/api" directory
- **Run** `npm ci` in the "C:/chatgpt-clone/client" directory
- **Run** `npm run build` in the "C:/chatgpt-clone/client"
- **Run** `"meilisearch --master-key put_your_meilesearch_Master_Key_here"` in the "C:/chatgpt-clone" directory (Only if SEARCH=TRUE)
- **Run** `npm start` in the "C:/chatgpt-clone/api" directory
- **Visit** http://localhost:3080 (default port) & enjoy
1. Run `npm ci`
2. Run `npm run frontend-dev`
3. Run `npm run backend`
4. Run `meilisearch --master-key put_your_meilesearch_Master_Key_here` (Only if SEARCH=TRUE)
5. Visit http://localhost:3080 (default port) & enjoy
#### Using a batch file