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

Run for Development

yarn watch

The watch command is running loopback at background. If you need to kill both services running on 3000 and 3003, you can use

yarn kill
Add a React Component
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

Stargazers

 avatar Chris Lonardo avatar Marco avatar  avatar Charoen Chaweechan avatar Efrem Ropelato avatar Hadi Mazalan avatar  avatar Jessica Viel avatar  avatar iVan avatar Nguyen Van Hiep avatar Krzysztof Kornacki avatar  avatar Merve T. avatar  avatar Burak Sevinç avatar Tuğbay Özkan avatar  avatar Kenan Kocaerkek avatar özkan pakdil avatar Celaleddin Hidayetoğlu avatar Gökay Şimşek avatar tanaydin sirin avatar Hakan Huseyin ÖZKILIÇ avatar  avatar

Watchers

 avatar Hakan Huseyin ÖZKILIÇ avatar James Cloos avatar Tuğbay Özkan avatar  avatar

loopback-react's Issues

node sass error

After fresh instalation

./src/styles/App.scss (./node_modules/css-loader/dist/cjs.js??ref--6-oneOf-5-1!./node_modules/postcss-loader/src??postcss!./node_modules/resolve-url-loader??ref--6-oneOf-5-3!./node_modules/sass-loader/lib/loader.js??ref--6-oneOf-5-4!./src/styles/App.scss) Module not found: Can't resolve '../components/Welcome/img/intro-header-bg.jpg' in '/Users/tygas/WebstormProjects/developer-dashboard/loopback-react/client/src/styles'

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.