aw-hammer -- ActiveWrite 2.0 in Redwood framework
After cloning:
yarn install
nvm use 12.14.1
yarn rw dev
Your browser should open automatically to http://localhost:8910
to see the web app.
Lambda functions run on http://localhost:8911
- proxied to http://localhost:8910/api/functions/*
.
To create a local SQLite database (and apply any unapplied migrations):
yarn rw db up
This will read the schema definition in api/prisma/schema.prisma
and its
migration steps, and generate a SQLite DB in api/prisma/dev.db
. You can start
over (in dev mode) by deleting the dev.db
file any time the app isn't running.
When you make changes to the schema, run yarn rw db save
to generate the latest migration milestone, run yarn rw db up
to migrate the DB to the latest design,
and run yarn rw db generate
to rebuild the GraphQL client.
The data provider doesn't have to be sqlite; that's just the dev default.
TBD
If you used yarn link
to reference a local version of a package normally
installed from an npm repo, be sure to do yarn unlink
before publishing.
The automated processes in CI/CD layer won't have your local package.
import TagsLayout from 'src/layouts/TagsLayout'
import NewTag from 'src/components/NewTag'
const NewTagPage = () => {
return (
<TagsLayout>
<NewTag />
</TagsLayout>
)
}
export default NewTagPage