Comments (7)
Assuming you have Yarn installed, all you need to do is
Development
yarn install
yarn dev:server
in one terminalyarn dev:client
in another terminal- The server runs on port 4000 and the client on port 3000 (make sure both ports are available)
- Open app at http://localhost:3000/
Production (you probably want this on your server)
yarn install
yarn build
yarn start
- Entire app runs on port 300
- I use Nginx to proxy port 80 to port 3000
from flatris.
thank you very much. Can the server and client be on the same server?
from flatris.
thank you very much. Can the server and client be on the same server?
Updated my initial comment
from flatris.
thank you very much. Can the server and client be on the same server?
Updated my initial comment
thank you very much.
from flatris.
hello~How to update the homepage data by setting up a server by myself? How often it will be updated.
This game is great. Thank you for your project.
from flatris.
hello~How to update the homepage data by setting up a server by myself? How often it will be updated.
This game is great. Thank you for your project.
You mean the stats? They update in real time.
To get the stats going on your server you need a Firebase account to use the Firebase Realtime database (free). You need to do two things:
- Set the
FIREBASE_SERVICE_ACCOUNT
environment variable when starting Flatris. It's picked up automatically here. More info related to Firebase credentials and service accounts here and here. - Change the
databaseURL
to your own instance. It's currently hardcoded tohttps://flatris-forever.firebaseio.com
, which is the official db for flatris.space.
Good luck!
from flatris.
hi,how to change the port?
from flatris.
Related Issues (20)
- Multilingual support HOT 5
- Remind me that my opponent left the game
- Error code 127 in yarn testing
- Reference as standalone React Cosmos example HOT 1
- Drop shadow & a more sudden drop
- Error with command: npm install
- Error with command: npm start
- Missing license information? HOT 3
- windows user HOT 2
- Add grid to the board HOT 1
- Switch position of 2 buttons: Rotate and Drop
- Going too fast too suddenly HOT 7
- backend server HOT 6
- Zoom on safari iphone HOT 1
- Does not works offline. New game is not a PWA.
- How do i get index.html? HOT 1
- heroku compatabilty HOT 1
- Drop button does not work well on qtwebview based browsers
- Heroku HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flatris.