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:
- https://loopback.io/doc/en/lb3/index.html
- https://github.com/facebook/create-react-app
- https://reacttraining.com/react-router/web/guides/philosophy
- https://redux.js.org/
- https://github.com/jaredpalmer/formik
- https://getbootstrap.com/docs/4.1/getting-started/introduction/
- https://reactstrap.github.io/
yarn install && cd client && yarn install
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
cd client && yarn start
The client run on localhost:3000 and talking with api on localhost:3003
cd client/
npx crcf src/components/NewComponent
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
/
/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