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
import * as express from 'express'; | |
import { Ticket } from '@happyorg/data'; | |
const app = express(); | |
const tickets: Ticket[] = [ | |
{ | |
title: `Install updates`, | |
id: 1 | |
}, |
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
import React, { useState, useEffect } from 'react'; | |
import { Ticket } from '@happyorg/data'; | |
export const App = () => { | |
const [tickets, setTickets] = useState<Ticket[]>([]); | |
useEffect(() => { | |
fetch('/api/tickets') | |
.then(t => t.json()) | |
.then(setTickets); |
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
export type Ticket = { | |
title: string; | |
id: number; | |
}; |
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
type Ticket = { | |
title: string; | |
id: number; | |
}; | |
export const App = () => { | |
const [tickets, setTickets] = useState<Ticket[]>([]); | |
useEffect(() => { | |
fetch('/api/tickets') |
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
import * as express from 'express'; | |
import { Ticket } from '@happyorg/data'; | |
const app = express(); | |
type Ticket = { | |
title: string; | |
id: number; | |
}; |
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
import React from 'react'; | |
import styled from 'styled-components'; | |
const StyledApp = styled.div` | |
... | |
`; | |
type Ticket = { | |
title: string; |
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
import { Ticket } form '@myorg/data-models'; |
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
<workspace name> | |
├── apps | |
│ ├── tickets | |
│ ├── tickets-e2e | |
│ ├── agent | |
│ └── agent-e2e | |
├── libs | |
│ └── data-models | |
│ ├── src | |
│ │ └─ index.ts |
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
nx serve agent | |
nx test agent | |
nx lint agent | |
nx build agent | |
nx e2e agent-e2e |
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
<workspace name> | |
├── apps | |
│ ├── tickets | |
│ ├── tickets-e2e | |
│ ├── agent | |
│ └── agent-e2e | |
├── libs | |
├── workspace.json | |
├── nx.json | |
├── package.json |