mgenev / nautilus

modern full stack javascript explorer
MIT License
18 stars 3 forks source link

Improve install instructions and scripts ;) #1

Open kristianmandrup opened 9 years ago

kristianmandrup commented 9 years ago

Please make it even easier to install, perhaps via another node or bash script

PS: Couldn't seem to get ./server or ./client to work?

# install.sh
# npm install -g gulp
./install_server
./install_client
npm install
gulp babel
# install_server.sh
cd server
npm install && cd ..
# install_client.sh
cd client
npm install && jspm -y install && cd ..
# run-server.sh
cd es5_server/
npm install
node server
# Koa server up on port 3000
# run-client.sh
cd client/
gulp watch
# http://localhost:9000

Open localhost:9000 in a browser

Yet I get browser console errors...

the server responded with a status of 404
System is not defined
mgenev commented 9 years ago

Thanks for the suggestions, I haven't done anything in this direction yet. I really should make it easier, but you know how it goes ;)

For server to work, in root you can do gulp babel, gulp watch, then run server js in the /es5_server folder, i'm transpiling it and running the result.

For the client, it's the skeleton app, the usual stuff should work... I'll try a fresh install to see

kristianmandrup commented 9 years ago

Thanks. Please try out my instructions for a sanity check, then adjust appropriately :)

mgenev commented 9 years ago

I just changed the server this weekend and haven't updated the instructions yet oops

mgenev commented 9 years ago

Ah so, looks like jspm may have changed. In ./client: npm install jspm install -y gulp watch

works, jspm -y install doesn't, but used to i think? or I got that piece wrong. I'll edit

mgenev commented 9 years ago

Just updated the instructions, it should make more sense now. I'll write some scripts per your suggestions too.

kristianmandrup commented 9 years ago

Gracias! Spasiba! Will have a look :)