-
-
Notifications
You must be signed in to change notification settings - Fork 508
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set up the Galaxy frontend's stack (#433)
* Setup webpacker for typescript * Typescript is working * Add documentation to set up the Galaxy project and start contributing to it * Add Storybook * Add Jest * Remove tuistenv from the .gitignore * Run rubocop
- Loading branch information
Pedro Piñera Buendía
committed
Jul 3, 2019
1 parent
5657230
commit f584917
Showing
52 changed files
with
22,078 additions
and
444 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -98,7 +98,6 @@ Carthage/Checkouts | |
*.profraw | ||
tuist.zip | ||
build/ | ||
tuistenv | ||
TODO | ||
TODO.md | ||
mkmf.log | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import Foundation | ||
import TuistEnvKit | ||
|
||
var registry = CommandRegistry() | ||
registry.run() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
node_modules | ||
.docz | ||
.docz | ||
yarn-error.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
--- | ||
name: Galaxy | ||
menu: Contributors | ||
--- | ||
|
||
# Galaxy | ||
|
||
Galaxy is a [Rails](https://rubyonrails.org/) application that exposes a [GraphQL API](https://graphql.org/learn/) that is consumed by a [React](https://reactjs.org/) frontend that is bundled and served by Rails using [Webpacker](https://github.com/rails/webpacker). | ||
|
||
## Set up for development | ||
|
||
- Git clone the repository: `git clone git@github.com:tuist/tuist.git`. | ||
- Install [Postgress](https://www.postgresql.org/download/macosx/). | ||
- Choose the galaxy directory: `cd galaxy`. | ||
- Install Bundler dependencies: `bundle install`. | ||
- Install NPM dependencies: `yarn install`. | ||
- Run: `rails start`. | ||
|
||
## Running tests | ||
|
||
- Rails unit tests: `rails test`. | ||
- Frontend tests: `yarn test`. | ||
|
||
## Storybook | ||
|
||
The project has [Storybook](https://storybook.js.org/) configured, a Javascript tool to create a catalogue for the project components. The catalogue entries are called stories, and they are defined in the directory `stories/`. | ||
|
||
To run the catalogue, just run the command `yarn storybook` in your terminal. That'll transpile the catalogue and open the browser with it. | ||
|
||
## Useful commands | ||
|
||
- `rails db:drop`: Deletes the database. | ||
- `rails db:create`: Creates the database. | ||
- `rails db:migrate`: Migrates the database structure. | ||
|
||
## Useful resources | ||
|
||
- [Rails](https://rubyonrails.org/) | ||
- [Styled components](https://www.styled-components.com/) | ||
- [Relay](https://relay.dev/) | ||
- [GraphQL](https://graphql.org/learn/) | ||
- [React](https://reactjs.org/) | ||
- [Webpacker](https://github.com/rails/webpacker) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.