Thanks to visit codestin.com
Credit goes to github.com

Skip to content

KwFung7/react-api

Repository files navigation

Start app

cd ~/mongo/bin && ./mongod --dbpath ~/mongo-data

  • start database server

yarn install

yarn dev-start

  • simultaneously start backend server and frontend admin
  • port 5000 for server
  • port 3000 for admin interface, developed with create react app

Testing

yarn test

yarn watch-test

  • test with nodemon hotloader

Deployment

Set start script in package.json

Set engines in package.json

  • specify which node version used, so heroku follow it

Heroku create app, add addons e.g. mLab, get DB url

  • heroku login
  • heroku create, create app
  • heroku addons:create mongolab:sandbox
  • heroku config, show mongodb url

Build frontend admin code

  • yarn build-client

About

Node.js API with React.js Admin interface

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •