# Portal Development

Are you ready to build your dream portal? Let's get started.

### Run the Project

Run `yarn dev` to spin up the project and navigate to `localhost:3000` in your browser.

{% hint style="warning" %}
Is the normal Sunflower Land game showing? Ensure that you have copied `.env.portal` into `.env`
{% endhint %}

### Boilerplate

The project is currently loading code inside of `PortalApp.tsx`

This app comes preloaded with a basic scene and HUD to demonstrate the foundations. You are able to add, edit & remove code in these files to add the functionality you want.

### What's next?

You can build your portal using whichever web technology your prefer. However, we recommend using existing technologies and patterns in the repository so you don't need to build everything from scratch.

1. [How to Design a Map that players can explore?](/contributing/portals-ugc/phaser-map-design-and-scenes.md)
2. [How to load player data and mint arcade tokens?](/contributing/portals-ugc/portal-apis.md)
3. [How do I deploy my portal so others can play it?](/contributing/portals-ugc/deploying.md)

### Resources

If you are looking to build a portal, it is recommended that you learn the basics of the React framework.

{% embed url="<https://legacy.reactjs.org/tutorial/tutorial.html>" %}

If you are looking to build game mechanics such as Combat, co-op minigames + more advanced functionality, it is recommend you explore the Phaser framework.

{% embed url="<https://phaser.io/>" %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sunflower-land.com/contributing/portals-ugc/portal-development.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
