Skip to content

Commit e975933

Browse files
committed
UPdating the current state
1 parent c3d72be commit e975933

File tree

5 files changed

+82
-85
lines changed

5 files changed

+82
-85
lines changed

README.md

Lines changed: 58 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -1,118 +1,104 @@
1-
# Astroship Pro
1+
# 1FE Documentation
22

3-
Astroship Pro is a Pro version of Popular Free Astroship Starter Template which was made for startups, marketing websites, landing pages & blog. Built with Astro & TailwindCSS.
3+
Official documentation repository for 1FE (One Front End) - A configuration-driven front-end platform that enables dynamic widget loading and micro-frontend architecture. Built with [Astro](https://astro.build) and [Starlight](https://starlight.astro.build).
44

5-
This Pro Template is made by [Web3Templates](https://web3templates.com)
5+
## About 1FE
66

7-
## Live Demo
8-
9-
### [Astroship Pro Live Demo](https://astroship-pro.web3templates.com/)
7+
1FE is a powerful platform that allows organizations to build scalable front-end applications using a micro-frontend approach with dynamic configuration management, widget orchestration, and runtime dependency management.
108

11-
### [Buy Astroship Pro Template](https://web3templates.com/templates/astroship-pro-astro-saas-website-template)
12-
13-
#### [Get Free Version](https://web3templates.com/templates/astroship-starter-website-template-for-astro)
9+
## Live Demo
1410

15-
## Preview
11+
You can view the live documentation at: [1fe.com](https://1fe.com)
1612

17-
![astroship-pro-preview](https://github.com/web3templates/astroship-pro/assets/1884712/17ca044c-c8ce-4a0a-8780-f078c2ef0cc4)
13+
## Getting Started
1814

19-
## Installation
15+
### Prerequisites
2016

21-
If you are already have github access, you can click on the "Fork" button above to create a new repository from astroship to your account. Then you can do a `git clone` to clone it to your local system.
17+
- [Node.js](https://nodejs.org/) (version 22 or higher)
18+
- [Yarn](https://yarnpkg.com/) package manager
2219

23-
Alternatively, you can clone the project directly from the github repo to your local system. make sure you have github repo access. Send an email to hello@web3templates.com to get github repo access.
20+
### Installation
2421

25-
### 1. Clone the repo
22+
1. Clone this repository:
2623

2724
```bash
28-
git clone https://github.com/web3templates/astroship-pro.git myProjectName
29-
# or
30-
git clone https://github.com/web3templates/astroship-pro.git .
25+
git clone https://github.com/docusign/1fe-docs.git
26+
cd 1fe-docs
3127
```
3228

33-
The `.` will clone it to the current directory so make sure you are inside your project folder first.
34-
35-
> Note: If you are reading this on a downloaded zip file after purchase, just skip this step and start installing npm from the next step.
36-
37-
### 2. Install Dependencies
29+
2. Install dependencies:
3830

3931
```bash
40-
npm install
41-
# or
4232
yarn install
43-
# or (recommended)
44-
pnpm install
4533
```
4634

47-
### 3. Start development Server
35+
3. Start the development server:
4836

4937
```bash
50-
npm run dev
51-
# or
5238
yarn dev
53-
# or (recommended)
54-
pnpm dev
5539
```
5640

57-
### Preview & Build
41+
4. Open your browser and navigate to [http://localhost:8432](http://localhost:8432) to view the documentation locally.
5842

59-
```bash
60-
npm run preview
61-
npm run build
62-
# or
63-
yarn preview
64-
yarn build
65-
# or (recommended)
66-
pnpm preview
67-
pnpm build
68-
```
43+
### Making Changes
6944

70-
We recommend using [pnpm](https://pnpm.io/) to save disk space on your computer.
45+
1. Edit the documentation files in the `src/content/docs/` directory
46+
2. The development server will automatically reload your changes
47+
3. Visit [http://localhost:8432](http://localhost:8432) to see your updates
7148

72-
### Other Commands
49+
### Build for Production
7350

7451
```bash
75-
pnpm astro ...
76-
pnpm astro add
77-
pnpm astro --help
52+
yarn build
7853
```
7954

8055
## Project Structure
8156

82-
Inside of your Astro project, you'll see the following folders and files:
57+
Inside of this Astro documentation project, you'll see the following folders and files:
8358

84-
```
59+
```text
8560
/
8661
├── public/
87-
│ └── ...
62+
│ ├── favicon.svg
63+
│ └── robots.txt
8864
├── src/
89-
│ ├── components/
90-
│ │ └── ...
91-
│ ├── layouts/
92-
│ │ └── ...
93-
│ └── pages/
94-
│ └── ...
65+
│ ├── content/
66+
│ │ ├── docs/ # Documentation content
67+
│ │ │ ├── getting-started/
68+
│ │ │ ├── main-concepts/
69+
│ │ │ ├── api-reference/
70+
│ │ │ └── ...
71+
│ │ └── config.ts # Content collections config
72+
│ ├── components/ # Reusable Astro components
73+
│ ├── layouts/ # Page layouts
74+
│ └── assets/ # Images and other assets
75+
├── astro.config.mjs # Astro configuration
9576
└── package.json
9677
```
9778

98-
Astro looks for `.astro` or `.md` files in the `src/pages/` directory. Each page is exposed as a route based on its file name.
99-
100-
Any static assets, like images, can be placed in the `public/` directory.
101-
102-
## TailwindCSS
103-
104-
TailwindCSS is already configured in this repo, so you can start using it without any installation.
105-
106-
## Versions
79+
Documentation content is written in MDX format and stored in the `src/content/docs/` directory. Each file automatically becomes a page based on its file path.
10780

108-
Current version: v2.0.0
81+
## Built With
10982

110-
## Credits
83+
- **[Astro](https://astro.build)** - Static site generator with excellent performance
84+
- **[Starlight](https://starlight.astro.build)** - Documentation theme built on Astro
85+
- **[TailwindCSS](https://tailwindcss.com)** - Utility-first CSS framework
86+
- **[MDX](https://mdxjs.com)** - Markdown with JSX support for interactive documentation
87+
- **[React Icons](https://react-icons.github.io/react-icons/)** - Icon library for UI elements
11188

112-
[Unsplash](https://unsplash.com)
89+
## Contributing
11390

114-
## 👀 Want to learn more?
91+
1. Fork the repository
92+
2. Create a feature branch (`git checkout -b feature/amazing-feature`)
93+
3. Make your changes to the documentation
94+
4. Test locally using `yarn dev` and visit [http://localhost:8432](http://localhost:8432)
95+
5. Commit your changes (`git commit -m 'Add some amazing feature'`)
96+
6. Push to the branch (`git push origin feature/amazing-feature`)
97+
7. Open a Pull Request
11598

116-
Feel free to check out [Astro Docs](https://docs.astro.build) or jump into our [Discord Chat](https://web3templates.com/discord).
99+
## Links
117100

118-
[![Built with Astro](https://astro.badg.es/v1/built-with-astro.svg)](https://astro.build)
101+
- [1FE Main Repository](https://github.com/docusign/1fe)
102+
- [Astro Documentation](https://docs.astro.build)
103+
- [Starlight Documentation](https://starlight.astro.build)
104+
- [TailwindCSS Documentation](https://tailwindcss.com/docs)

src/content/docs/getting-started/customize.mdx

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ sidebar:
88
import { SlCloudDownload, SlPencil, SlRocket } from "react-icons/sl";
99
import { FcOk } from "react-icons/fc";
1010

11-
Let's customize your new 1FE app by making changes to the default plugin! Since 1FE is powered by CDN, we will update and build the plugin and publicly host the assets.
11+
Let's customize your new 1FE app by making changes to the default plugin! Since 1FE is powered by CDN, we will update and build the plugin and host the assets.
1212

1313
## <SlPencil style={{ display: 'inline', marginRight: '0.5rem', verticalAlign: 'middle' }} /> Make changes to example plugin
1414

@@ -55,13 +55,20 @@ yarn build:widget
5555
![dist folder contents](./assets/example-plugin-dist.png)
5656

5757

58-
## <SlCloudDownload style={{ display: 'inline', marginRight: '0.5rem', verticalAlign: 'middle' }} /> "Deploy" your plugin to a CDN
58+
## <SlCloudDownload style={{ display: 'inline', marginRight: '0.5rem', verticalAlign: 'middle' }} /> "Setup" your CDN
5959

6060
To get started quickly, we can use github's mirrored assets on the jsdelivr CDN.
6161

6262
##### 1. Fork this [mock-cdn-assets](https://github.com/docusign/mock-cdn-assets/tree/main) repository
63+
This repository contains the Live Configurations and widget assets per environment that power demo.1fe.com. We will use this to host our plugin assets and rely on [jsdelivr](https://www.jsdelivr.com/) to act as a CDN to start powering our application.
6364

64-
##### 2. Upload the new assets to your forked mocked-cdn-assets repository
65+
##### 2. Update the live configs
66+
67+
One of the key features of 1FE is the ability to dynamically load widgets and plugins via [Live Configurations](../../main-concepts/live-configurations). We will update the Live Configurations to point to our new plugin assets.
68+
69+
## <SlCloudDownload style={{ display: 'inline', marginRight: '0.5rem', verticalAlign: 'middle' }} /> "Deploy" your plugin to CDN
70+
71+
Upload the new assets to your forked mocked-cdn-assets repository
6572
1. Create a new directory within `development/widgets/@1fe/starter-kit` of your forked repo. The directory name should be the next bumped version. (e.g `1.0.2`).
6673

6774
2. Upload the contents of the `1fe-widget-starter-kit/dist/` directory to the new directory.

src/content/docs/getting-started/familiarize.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ import { SlSocialDropbox, SlAnchor, SlCloudDownload } from "react-icons/sl";
99

1010
## <SlSocialDropbox style={{ display: 'inline', marginRight: '0.5rem', verticalAlign: 'middle' }} /> Starter Plugin
1111

12-
##### 1. Visit `http://localhost:3001/app1/utils` to view the example starter plugin
12+
##### 1. Visit `http://localhost:3001/widget-starter-kit/utils` to view the example starter plugin
1313

1414
##### 2. Click the button `utils.context.get`
1515
![A rocketship in space](./assets/example-child-widget.png)
1616

1717
##### 3. What just happened?
1818

19-
1. 1FE loaded and rendered the *plugin* tied to the `/app1` route.
19+
1. 1FE loaded and rendered the *plugin* tied to the `/widget-starter-kit` route.
2020

2121
2. When `utils.context.get` was clicked, the plugin loaded a child *widget* via the *platform utilities* provided by 1FE shell.
2222

src/content/docs/getting-started/installation.mdx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ import { SlWrench, SlAnchor, SlCloudDownload } from "react-icons/sl";
1717

1818
## <SlCloudDownload style={{ display: 'inline', marginRight: '0.5rem', verticalAlign: 'middle' }} /> Manual Installation
1919

20-
##### 1. Clone the 1FE monorepo (or your fork of it):
20+
##### 1. Scaffold a starter application:
2121

2222
```bash
23-
git clone https://github.com/docusign/1fe.git
23+
npx @1fe/create-1fe-app <test-app-name>
2424
```
2525

2626
##### 2. Clone the 1FE widget starter kit (WSK):
@@ -34,7 +34,7 @@ import { SlWrench, SlAnchor, SlCloudDownload } from "react-icons/sl";
3434
First you need to build the 1FE monorepo and the starter kit.
3535

3636
```bash
37-
cd 1fe # adjust this to fit your directory structure
37+
cd <test-app-name> # adjust this to fit your directory structure
3838
yarn && yarn build
3939
```
4040

@@ -48,19 +48,19 @@ import { SlWrench, SlAnchor, SlCloudDownload } from "react-icons/sl";
4848
##### 3. Run the starter app development server
4949

5050
```bash
51-
cd 1fe/apps/starter-app # adjust this to fit your directory structure
51+
cd <test-app-name> # adjust this to fit your directory structure
5252
yarn dev
5353
```
5454

55+
You can now visit your application at [http://localhost:3000](http://localhost:3000). You will see this mirror our demo website [here](https://demo.1fe.com/). We will take a look later at how to customize this application.
56+
5557
##### 4. Run the development server for the WSK
5658

5759
```bash
5860
cd 1fe-widget-starter-kit/ # adjust this to fit your directory structure
5961
yarn dev
6062
```
6163

62-
Now visit `http://localhost:3001/app1` to view your application! 🎉
63-
64-
## <SlWrench style={{ display: 'inline', marginRight: '0.5rem', verticalAlign: 'middle' }} /> Automatic Installation (WIP)
64+
This will open WSK at the following [link](http://localhost:3001/bathtub?widgetUrl=http%3A%2F%2F127.0.0.1%3A8080%2Fjs%2F1fe-bundle.js)
6565

66-
Coming Soon!
66+
You now have a functioning 1FE application running locally! 🎉

src/content/docs/main-concepts/live-configurations.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ import { FcFlashOn } from 'react-icons/fc';
99

1010
## <FcFlashOn style={{ display: 'inline', marginRight: '0.5rem', verticalAlign: 'middle' }} /> What are Live Configurations?
1111

12+
<div className="prose">
13+
1214
Live Configurations are a set of configurations that allows 1FE to provide dynamic features:
1315

1416
1. Dynamically build widgets and other build-time validations
@@ -23,3 +25,5 @@ Live Configurations are a set of configurations that allows 1FE to provide dynam
2325

2426
6. Configuring plugin runtime behaviors
2527

28+
</div>
29+

0 commit comments

Comments
 (0)