Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Node.js API with React.js Admin interface

NotificationsYou must be signed in to change notification settings

KwFung7/react-api

Repository files navigation

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

Contributors2

  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp