From your terminal:
npm run devThis starts your app in development mode, rebuilding assets on file changes.
First, build your app for production:
npm run buildThen run the app in production mode:
npm startNow you'll need to pick a host to deploy it to.
- Prerequisites: Node.js & npm! Install Node.JS
- Create an empty GitHub Repository (no README.md or LICENSE)
git cloneyour repository into your local desktop using your computer's terminal. Thencdinto this repository.- In the repository, use
npx create-remix@latestto create a new Remix application. - When prompted 'Where should we create your new project?' answer
/because you are in the repository already. - Remix will recognize there is a Git repo initialized with your folder and begin downloading.
npm run buildand click the localhost link to see your app in production!app/routes/_index.tsxis your main page. Customize it any way you'd like!- For deployment, go to Fly.io and create an account
- Install Fly.io using
powershell -Command "iwr https://fly.io/install.ps1 -useb | iex" - In your project folder, use
fly launchand watch the magic happen! - Congrats! You just made your own website.
This part of the documentation was made for David V :) Thank you for giving me motivation to work on my personal projects!