-
Notifications
You must be signed in to change notification settings - Fork 12
How to setup a local server
-
Download and install Node.js
-
Install the dependencies:
npm install
(if all you will edit is the front-end, you can skip steps 4, 5 and 6 and just setMONGO_CONN=""
inside.env
) -
Create a free Mongo DB at mlab.com (or at any other mongo server)
-
Create an user to access your DB (you can do this, and all DB related setup, in the mlab.com web interface)
-
Create a collection named
collection
in your mongo db and inside it, create a document with this content:{"document": "dotacard"}
-
Set up you environment config copping
EXAMPLE.env
to.env
, then edit.env
with your DB connection URL (in Windows you need to create.env.
- note the last dot will be auto removed) -
Build client side bundle:
npm run build
(orgrunt
) -
Run the server:
npm start
(ornode server.js
) -
Happy Hacking!
After you change any UI code, you must access host:port/debug.html
or run npm run build
to bundle the code.