Code Monkey home page Code Monkey logo

starter-architect's Introduction

Please Don't Use

Please use npm init remix instead of this starter repo to create a new Remix app. This repository was archived on April 29, 2021.

Remix Starter for Architect (AWS CloudFormation)

Welcome to Remix!

This is a starter repo for using Remix with Architect (wrapper around AWS CloudFormation).

Development

When developing your app, you'll need two terminal tabs, one to run Architect's sandbox, and the other to run the Remix development server. In production, however, the Remix development server won't be used because your assets will be built and shipped with the server.

First, .npmrc.example to .npmrc and insert the license key you get from logging in to your dashboard at remix.run.

Note: if this is a public repo, you'll probably want to move the line with your key into ~/.npmrc to keep it private.

Next, install all dependencies using npm:

npm install

Your @remix-run/* dependencies will come from the Remix package registry.

Remix Development Server

Once everything is installed, start the Remix asset server with the following command:

npm run dev

The dev server automatically rebuilds as your source files change.

Architect Sandbox

Architect recommends installing their CLI and the AWS sdk globally:

$ npm i -g @architect/architect aws-sdk

Now start the sandbox:

$ arc sandbox

You should now be able to visit http://localhost:3333.

Deploying

First, you'll need to have the AWS CLI installed, here are the instructions. Then follow the Architect setup instructions: https://arc.codes/docs/en/guides/get-started/detailed-aws-setup.

Now you're ready to deploy. From the Remix http handler directory, build the app for production:

$ npm run build

And then from the root of the project, deploy with arc.

$ arc deploy

That's it!

Documentation

Detailed documentation for Remix is available at remix.run.

starter-architect's People

Contributors

brianleroux avatar mjackson avatar ryanflorence avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

starter-architect's Issues

Invalid server mode "staging"

When I follow the readme and deploy the app, I receive an {"message":"Internal Server Error"} in the frontend.

In cloudwatch it says:

2021-01-31T00:41:56.441Z	undefined	ERROR	Error: Invalid server mode "staging" 
at Object.readConfig (/var/task/node_modules/@remix-run/core/config.js:33:11) 
at createPlatformRequestHandler (/var/task/node_modules/@remix-run/core/adapter.js:22:37)
at Object.<anonymous> (/var/task/index.js:2:19)
at Module._compile (internal/modules/cjs/loader.js:999:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
at Module.load (internal/modules/cjs/loader.js:863:32)
at Function.Module._load (internal/modules/cjs/loader.js:708:14)
at Module.require (internal/modules/cjs/loader.js:887:19)
at require (internal/modules/cjs/helpers.js:74:18)
at _tryRequire (/var/runtime/UserFunction.js:75:12)

npm ERR! 403 403 Forbidden

Hi there,

Not sure if I am missing something but when I run this project I am getting below error

vnpm ERR! 403 403 Forbidden - GET https://npm.remix.run/@remix-run%2farchitect - Missing authorization

259 verbose Darwin 20.3.0
260 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "i" "--production"
261 verbose node v15.12.0
262 verbose npm v7.6.3
263 error code E403
264 error 403 403 Forbidden - GET https://npm.remix.run/@remix-run%2farchitect - Missing authorization
265 error 403 In most cases, you or one of your dependencies are requesting
265 error 403 a package version that is forbidden by your security policy, or
265 error 403 on a server you do not have access to.
266 verbose exit 1

Did anyone come across this issue?

Thanks,

Kal

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.