Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ NGINX_LE_FQDN=your-domain.com,www.your-domain.com
NGINX_LE_LETSENCRYPT=false
NGINX_LE_TZ=timezone
NGINX_PROXY_PORT=8080
NGROK_AUTH_TOKEN=[NGROK-AUTH-TOKEN]
NODE_ENV=development
PORT=3000
PUBLIC_IP_ADDRESS=[YOUR-PUBLIC-IP-ADDRESS]
Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ cp mobile/.env.example mobile/.env
In the `root` directory, run:

```bash
npm install
yarn install
```

### 3. Start development servers
Expand All @@ -132,7 +132,7 @@ To start `server`, `client`, and `mobile`, run:

```bash
# In the root directory (mern):
npm start
yarn start
# Server API is running at http://localhost:SERVER_PORT (http://localhost:8861 by default)
# Web client is running at http://localhost:PORT (http://localhost:3000 by default)
# Mobile - Expo DevTools is running at http://localhost:19002
Expand All @@ -143,20 +143,20 @@ npm start
- **For the sake of simplicity, we use free service [ngrok](https://ngrok.com/) to create a public API URL for mobile development. The downside of this approach is that the public URL is only available for 8 hours, so we need to restart the npm process every 8 hours.**
- **After 8 hours, the `mobile` process will be terminated, and a warning message will be displayed in your terminal to remind you to restart npm process.**

To restart npm process (_If you don't start the mobile development process, ignore this step_):
To restart yarn process (_If you don't start the mobile development process, ignore this step_):

```bash
# In your current terminal, press Ctrl + C to exit. Then run
npm start # start server, client and mobile dev process
yarn start # start server, client and mobile dev process
# or
npm run server:mobile # start server and mobile dev process
yarn run server:mobile # start server and mobile dev process
```

Or to start `server` and `client` only, run:

```bash
# In the root directory (mern):
npm run server:client
yarn run server:client
# Server API is running at http://localhost:SERVER_PORT (http://localhost:8861 by default)
# Web client is running at http://localhost:PORT (http://localhost:3000 by default)
```
Expand All @@ -165,7 +165,7 @@ Or to start `server` and `mobile` only, run:

```bash
# In the root directory (mern):
npm run server:mobile
yarn run server:mobile
# Server API is running at http://localhost:SERVER_PORT (http://localhost:8861 by default)
```

Expand Down
17,228 changes: 0 additions & 17,228 deletions client/package-lock.json

This file was deleted.

12,675 changes: 12,675 additions & 0 deletions client/yarn.lock

Large diffs are not rendered by default.

Loading