Code Monkey home page Code Monkey logo

loopback-react's Introduction

loopback-react playground

loopback (mongodb) - react, router, redux, axios, formik, bootstrap 4 (reactstrap) fullstack playground with authentication and user management

This a full stack playground for developing a Loopback - React application. And it's under the development still.

For more info you can check:

Install

yarn install && cd client && yarn install

Run Loopback

yarn start

The server run on localhost:3003 and server/boot/init.js will create three users (admin, editor and user)

You can reach the Api Explorer via localhost:3003/explorer

Run Client (React)

cd client && yarn start

The client run on localhost:3000 and talking with api on localhost:3003

Add a React Componnet
cd client/
npx crcf src/components/NewComponent

Build and Serve the Client

cd client/
yarn build

After the build to serve the client you should edit the server/middleware.json like below

  "files": {
    "loopback#static": [
      {
        "paths": ["/"],
        "params": "$!../client/build"
      },
      {
        "paths": ["*"],
        "params": "$!../client/build"
      }
    ]
  }

to more info https://loopback.io/doc/en/lb3/Defining-middleware.html

Routes

 /
 /feature
 /signin
 /signup
 /signout
 /reset
 /newpassword/:token
 /tos
 /privacy
 - /home
   /profile
   /settings/:page? (default /settings/account)
   /users/:page?/:id? (default /users/list)
   /user/:id
   /user/:id/edit
   /:username (run as /profile)

in client/src/routes/index.js

loopback-react's People

Contributors

goker-dev avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.