This repository demonstrates how to dockerize and deploy a Remix application to Back4app Containers.
To learn more check out the article.
-
Fork/Clone
-
Install the dependencies:
$ npm install
-
Create a .env file in the project root with the following content:
PARSE_APPLICATION_ID=<your_parse_app_id> PARSE_JAVASCRIPT_KEY=<your_parse_javascript_key>
-
Run the server:
$ npm run dev
-
Navigate to http://localhost:5173/ in your favorite web browser.
-
Install Docker (if you don't have it yet).
-
Build and tag the image:
$ docker build -t remix-notes:1.0 .
-
Start a new container:
$ docker run -it -p 3000:3000 -e PARSE_APPLICATION_ID=<your_parse_app_id> -e PARSE_JAVASCRIPT_KEY=<your_parse_javascript_key> -d remix-notes:1.0
-
Navigate to http://localhost:3000/ in your favorite web browser.