embarklabs / embark-nextjs-template

0 stars 0 forks source link

Next.js Template for Embark #1

Open iurimatias opened 6 years ago

iurimatias commented 6 years ago

Outline

The goal of this task is to create a ready to use next.js template for Embark. The template should have:

This task is meant for the embark version currently in the develop branch, to install:

git clone git@github.com:embark-framework/embark.git
cd embark
npm install
npm link

Afterwards embark version should say 3.2.0-develop

Acceptance Criteria

gitcoinbot commented 6 years ago

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


This issue now has a funding of 100.0 DAI (100.0 USD @ $1.0/DAI) attached to it.

gitcoinbot commented 6 years ago

Issue Status: 1. Open 2. Cancelled


Workers have applied to start work.

These users each claimed they can complete the work by 1 month ago. Please review their action plans below:

1) HafeezRai has applied to start work _(Funders only: approve worker | reject worker)_.

Hi i want to work on next.js i new to this so i can learn this

Learn more on the Gitcoin Issue Details page.

gitcoinbot commented 6 years ago

@santteegt Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an ‘Open’ status. Please let us know if you have questions!

Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days

santteegt commented 6 years ago

Hi,

Thanks for accepting my application. I'll start working on that.

gitcoinbot commented 6 years ago

@santteegt Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an ‘Open’ status. Please let us know if you have questions!

Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days

gitcoinbot commented 6 years ago

@santteegt Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an ‘Open’ status. Please let us know if you have questions!

Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days

santteegt commented 6 years ago

Hi,

I hope I'll be making a PR during this week.

However, one of the things that I'm still facing is in finding the best way to integrate Next.js within embark's pipeline. Next.js allows to deploy sever-side rendered apps using both next start command, and programmatically by using a custom server such as express (example).

Digging into Embark's source code, I found that the webserver module plugin is in charge of creating an instance using express which statically points to the buildDir.

Given that the express instance is created through the pipeline, I came out with two possible solutions:

  1. Disable the webserver module in embark's pipeline, and run/deploy the dapp separately using scripts in package.json. Something similar to the truffle box available in this repo.
  2. Export the Next.js dapp as static HTML in the app directory. There's an option to export a Next.js app as a static bundle (i.e. just html/css/js) that can be served on a CDN or anywhere else (like IPFS or Swarm).

Nevertheless, I'm not 100% convinced on my ideas, so I wanted to expose them to you so I can get some feedback and possible ideas on how to integrate Next into embark's pipeline.

gitcoinbot commented 6 years ago

@santteegt Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an ‘Open’ status. Please let us know if you have questions!

Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days

gitcoinbot commented 6 years ago

@santteegt Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an ‘Open’ status. Please let us know if you have questions!

Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days

gitcoinbot commented 6 years ago

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


@santteegt due to inactivity, we have escalated this issue to Gitcoin's moderation team. Let us know if you believe this has been done in error!

Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days

gitcoinbot commented 6 years ago

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


@santteegt due to inactivity, we have escalated this issue to Gitcoin's moderation team. Let us know if you believe this has been done in error!

Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days

santteegt commented 6 years ago

Hi,

I'm still facing some problems to solve this issue. I'm still waiting for any comments to my last post I made a week ago

gitcoinbot commented 6 years ago

@santteegt Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an ‘Open’ status. Please let us know if you have questions!

Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days

gitcoinbot commented 6 years ago

@santteegt Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an ‘Open’ status. Please let us know if you have questions!

Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days

santteegt commented 6 years ago

I'm still waiting for any comments to my last post. Meanwhile, I was working in another embark's bounty.

Hi,

I hope I'll be making a PR during this week.

However, one of the things that I'm still facing is in finding the best way to integrate Next.js within embark's pipeline. Next.js allows to deploy sever-side rendered apps using both next start command, and programmatically by using a custom server such as express (example).

Digging into Embark's source code, I found that the webserver module plugin is in charge of creating an instance using express which statically points to the buildDir.

Given that the express instance is created through the pipeline, I came out with two possible solutions:

  1. Disable the webserver module in embark's pipeline, and run/deploy the dapp separately using scripts in package.json. Something similar to the truffle box available in this repo.
  2. Export the Next.js dapp as static HTML in the app directory. There's an option to export a Next.js app as a static bundle (i.e. just html/css/js) that can be served on a CDN or anywhere else (like IPFS or Swarm).

Nevertheless, I'm not 100% convinced on my ideas, so I wanted to expose them to you so I can get some feedback and possible ideas on how to integrate Next into embark's pipeline.

gitcoinbot commented 6 years ago

@santteegt Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an ‘Open’ status. Please let us know if you have questions!

Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days

gitcoinbot commented 6 years ago

@santteegt Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an ‘Open’ status. Please let us know if you have questions!

Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days

santteegt commented 6 years ago

Hi,

I haven't received a response in almost 20 days since my post asking some questions about how to solve this bounty, mainly about the server-rendered nature of Next.js. I'm going to apply the Stop Work on Gitcoin so I can free a spot to apply for another bounties.

I have contributed to you on a similar bounty with another framework here. In case you still want me to help you on this bounty, let me know :)

frankchen07 commented 6 years ago

@iurimatias - do you have any follow up for @santteegt that might help?

gitcoinbot commented 5 years ago

@nebrelbug Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an ‘Open’ status. Please let us know if you have questions!

Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days

gitcoinbot commented 5 years ago

@millnitzluan Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an ‘Open’ status. Please let us know if you have questions!

Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days

frankchen07 commented 5 years ago

@iurimatias - Frank from Gitcoin here, following up again, is this issue still open? Please chime in and give us an update when you can!

gitcoinbot commented 5 years ago

Issue Status: 1. Open 2. Cancelled


The funding of 100.0 DAI (100.0 USD @ $1.0/DAI) attached to this issue has been cancelled by the bounty submitter

evseevnn-zzz commented 5 years ago

@iurimatias Any update here? Can i take this task?