Giter VIP home page Giter VIP logo

create-redwood-app's Introduction

Redwood

๐Ÿ‘‰ "This is not the Repo you are looking for" ...most likely. If your goal is to start building an app using RedwoodJS, you'll want to read through the Tutorial and get started from the command line: $ yarn create redwood-app <directory-name>

This repo is a template used by the RedwoodJS app bootstrap package 'Create Redwood App', which is located at redwood/packages/create-redwood-app/. If you're looking to do things like contributing to RedwoodJS development or reference Redwood's full-stack building blocks, then you're in the right place!๐ŸŒฒ๐ŸŽ‰

Releases

To ensure yarn.lock is in sync with latest @redwoodjs packages, follow these steps:

  1. confirm your local branch is up to date with master, then run git clean -fxd
  2. update root, web/, and api/ package.json to latest @redwoodjs package version
  3. run yarn
  4. Commit all changes including yarn.lock
  5. Create new release

Development: Getting Started

Before you begin, please read the RedwoodJS Contributor Covenant Code of Conduct

Most likely, you'll need to set up a development environment linked to packages from a local clone of redwoodjs/redwood/packages. This doc will help get you started: Contributing to RedwoodJS

Setup

We use Yarn as our package manager:

yarn install

RedwoodJS uses yarn workspaces to separately manage web/ and api/. All commands are configured to run from the root directory unless otherwise indicated.

Running the Local Server(s)

You can run both the API and Web servers with a single command:

yarn redwood dev

The web browser opens automatically when you run rw dev. To disable this, edit your settings in redwood.toml. Set [browser] open = true to false.

You can run the servers for each of the yarn workspaces independently:

yarn rw dev api
yarn rw dev web

Web Server: http://localhost:8910 Lambda functions: http://localhost:8911 Lambda proxy: http://localhost:8910/api/functions/*.

Database

RedwoodJS uses Prisma2, a modern DB toolkit to query, migrate and model your database.

Prisma2 is not ready for production at the moment.

To create a development database:

yarn redwood db up

This will read the schema definition in api/prisma/schema.prisma and generate a sqlite database in api/prisma/dev.db

If you've made changes to the schema run yarn redwood db save to generate a migration, and yarn redwood db up to apply the migration/ generate a new ORM client.

create-redwood-app's People

Contributors

cannikin avatar gfpacheco avatar leonardoelias avatar michelegera avatar mojombo avatar nikolasburk avatar peterp avatar satyarohith avatar thedavidprice avatar

Stargazers

 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.