| author | Edson Ayllon | |||||
|---|---|---|---|---|---|---|
| category | starter project | |||||
| tags |
|
|||||
| status | complete | |||||
| https://twitter.com/relativeread |
This project compiles to a React web app, iOS app, Android app, MacOS app, Windows app, and communicates to a node.js express API.
-
Clone project
-
Install dependencies in both
./frontendand./backend
yarn || npm install
Run the backend first, then the frontend.
In ./backend:
npm run start || yarn start || exp start
In ./frontend:
npm run start || yarn start || exp start
Runs the app on mobile.
npm run web || yarn web
Runs the app on browser.
npm run desktop || yarn desktop
Runs the app as a desktop app.
The back-end will be running in localhost:3001, while the front-end runs in localhost:3000 for web and desktop, and localhost:19000 for mobile.
To run the app on Expo for mobile, no proxy is used. Instead, the port is
written in the fetch requests
fetch('http://localhost:3001/users')
Backend data is found in .backend/routes/. To add a new page, configure it
in .backend/app.js.
Electron is set for development, but not for production.