Trailhead is a starter point for your app, based on top of Redwoodjs , it adds common functionalities so you don't have to!
- auth, provided by netlify identity. docs
- user management, provided via custom pages, component and services
- Error Loggin
There are two ways to use trailhead,
Click here to generate a new repository from the latesr version of trailhead.
If you are starting from scratch you can follow this steps:
yarn create redwood-app app-name
cd app-name
yarn rw setup auth netlify
yarn workspace api add got
Using netlify
yarn rw setup deploy netlify
Copy all the folders and files from web/src/components
Copy all the folders and files from web/src/layouts
Copy all the folders and files from web/src/pages
This will add the pages to the router, the file is located at web/src/routes.js
Click here for the latest version
Copy all the folders and files from api/src/services
Copy all the folders and files from api/src/graphql
You are done! you can start the dev server now
yarn rw dev
To deploy the app to netlify, I higly recommend configuring your site for continuous deployment by connecting your site to a git repository. click here to create a new site and follow the steps there
WARNING: RedwoodJS software has not reached a stable version 1.0 and should not be considered suitable for production use. In the "make it work; make it right; make it fast" paradigm, Redwood is in the later stages of the "make it work" phase.
- Tutorial: getting started and complete overview guide.
- Docs: using the Redwood Router, handling assets and files, list of command-line tools, and more.
- Redwood Community: get help, share tips and tricks, and collaborate on everything about RedwoodJS.
We use Yarn as our package manager. To get the dependencies installed, just do this in the root directory:
yarn install
yarn redwood dev
Your browser should open automatically to http://localhost:8910
to see the web app. Lambda functions run on http://localhost:8911
and are also proxied to http://localhost:8910/.redwood/functions/*
.