-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathimportant command.txt
38 lines (25 loc) · 1.23 KB
/
important command.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
bash $
---------------------------------------------------------------------------
npx -g create-react-app my-app
npm start ---> to start react server
npm run build -->Building for Production: When you’re ready to deploy your app, you can create a production build using
------------------------------------------------------------------------------------------
npm i -d nodemon
-d refers to dev dependency
nodemon .\index.js to run mongodb server
------------------------------------------------------------------------------------------
if nodemon isn't working do this in windows power shell
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.
Install the latest PowerShell for new features and improvements! https://aka.ms/PSWindows
PS C:\Users\user> Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
PS C:\Users\user> Set-ExecutionPolicy Unrestricted -Scope CurrentUser
PS C:\Users\user> Get-ExecutionPolicy
Unrestricted
PS C:\Users\user> npx nodemon .\index.js
Usage: nodemon [nodemon options] [script.js] [args]
See "nodemon --help" for more.
PS C:\Users\user>
------------------------------------------------------------------------------------------
run both backend and frontend
npm run both