This project was bootstrapped with Create React App.
In the project directory, you can run:
Runs the client app in development mode.
Open [http://localhost:3000] to view it in the browser.
Notice: You also need to start the server with the API
or an alternative API on the same host.
Runs the server with API in development mode.
The server will be watched with nodemon for changes in the code.
The API runs on [0.0.0.0:5000].
Runs the server and the API in development mode on 0.0.0.0.
Use this for developing in the App and the server.
Open [http://localhost:3000] to view it in the browser.
The client proxies its API calls to port 5000, where the server
with the API listens.
Initiates the database with default seeds for missing data.
Notice: Later we can do migrations here maybe, too.
Runs the following steps to start the server with the App in production mode
- Initiates the database (
npm run initiate
) - Starts the server with node
- The server serves the built App by any URL
You can specify the host and port by setting env.HOST
and env.PORT
.
.
Default is [http://0.0.0.0:5000].