rohan-buechner / eventbus-demo

Event Bus🚌

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Event Bus Demo

Screenshot

This product is built with Remix

Development

The project requires an API key. You can get it by following the Google Cloud setup and run the command to create a .env file:

echo "GOOGLE_MAPS_API_KEY=[your_api_key]" > .env

The Remix dev server starts your app in development mode, rebuilding assets on file changes. To start the Remix dev server:

yarn dev

Open up http://localhost:3000, and you should be ready to go!

The Netlify CLI builds a production version of your Remix App Server and splits it into Netlify Functions that run locally. This includes any custom Netlify functions you've developed. The Netlify CLI runs all of this in its development mode.

netlify dev

Open up http://localhost:3000, and you should be ready to go!

Note: When running the Netlify CLI, file changes will rebuild assets, but you will not see the changes to the page you are on unless you do a browser refresh of the page. Due to how the Netlify CLI builds the Remix App Server, it does not support hot module reloading.

Netlify Setup

  1. Install the Netlify CLI:
npm i -g netlify-cli

If you have previously installed the Netlify CLI, you should update it to the latest version:

npm i -g netlify-cli@latest
  1. Sign up and log in to Netlify:
netlify login
  1. Create a new site:
netlify init

Deployment

There are two ways to deploy your app to Netlify, you can either link your app to your git repo and have it auto deploy changes to Netlify, or you can deploy your app manually. If you've followed the setup instructions already, all you need to do is run this:

# preview deployment
netlify deploy --build

# production deployment
netlify deploy --build --prod

About

Event Bus🚌

License:MIT License


Languages

Language:TypeScript 52.7%Language:CSS 27.9%Language:JavaScript 19.4%