forked from meteor/meteor
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'devel' into improve-queue-stubs-helpers
- Loading branch information
Showing
13 changed files
with
167 additions
and
57 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 was deleted.
Oops, something went wrong.
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,35 @@ | ||
/* global hexo */ | ||
|
||
hexo.extend.filter.register('after_render:html', function (str) { | ||
const warningMessage = ` | ||
<div class="warning-banner"> | ||
<p> | ||
⚠️ You're browsing the documentation for an old version of Meteor.js. | ||
Check out the <a href="https://docs.meteor.com" target="_blank">v3 docs</a> and <a href="https://v3-migration-docs.meteor.com/" target="_blank">migration guide</a>. | ||
</p> | ||
</div> | ||
`; | ||
|
||
const css = ` | ||
<style> | ||
.warning-banner { | ||
text-align: center; | ||
background-color: #fff3cd; | ||
border: 1px solid #ffeeba; | ||
color: #856404; | ||
margin-bottom: 20px; | ||
} | ||
.warning-banner a { | ||
color: #0056b3; | ||
text-decoration: underline; | ||
} | ||
.warning-banner a:hover { | ||
color: #003d82; | ||
} | ||
</style> | ||
`; | ||
|
||
const injectedContent = css + warningMessage; | ||
|
||
return str.replace(/<div class="content">/, `<div class="content" data-injected>${injectedContent}`); | ||
}); |
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
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,54 @@ | ||
# Web Apps | ||
|
||
Meteor allows developers to build web applications using front-end frameworks like React, Vue, Blaze, Svelte, and Solid. | ||
This section will help you quickly set up a new MeteorJS project using React. | ||
|
||
## Step 1: Install Meteor | ||
|
||
Ensure you have the latest official Meteor release installed. You can find installation instructions in our [docs](/about/install.html). | ||
|
||
## Step 2: Create a New Project | ||
|
||
To create a new project with Meteor and React, use the command: | ||
|
||
```shell | ||
meteor create myapp | ||
``` | ||
|
||
This command sets up a Meteor project with React, allowing you to start developing right away. | ||
|
||
You can also add the `--react` option to explicitly choose React, but it's already included by default. | ||
If you prefer TypeScript, simply add the `--typescript` option. | ||
|
||
```shell | ||
meteor create myapp --typescript | ||
``` | ||
|
||
### Additional Options | ||
|
||
Meteor offers flags to generate different types of apps, like choosing a different front-end framework or configurations during project setup. | ||
|
||
Additional options are available in the [Meteor CLI](/cli/#meteor-create-app-name) section. | ||
|
||
## Step 3: Run Your Project Locally | ||
|
||
Navigate into your project directory and start the Meteor server: | ||
|
||
```shell | ||
cd myapp | ||
meteor | ||
``` | ||
|
||
With no arguments, `meteor` runs the project in the current directory in local development mode. | ||
Your application will be running at `http://localhost:3000/`, ready for you to begin development. | ||
|
||
## Getting Help | ||
|
||
You can find help for using the Meteor command line. Just run `meteor help` to see a list of common commands. | ||
If you want detailed help about a specific command, run `meteor help <command>`. For example, `meteor help create`. | ||
|
||
## Next Steps | ||
|
||
- Follow the [React](/tutorials/react/index.html) or [Vue](/tutorials/vue/meteorjs3-vue3-vue-meteor-tracker.html) tutorials. New tutorials are coming soon. | ||
- Read about [Cordova for Mobile Apps](/about/cordova.html). | ||
- Explore the [Meteor Guide](https://guide.meteor.com/). |
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.