Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alexweberk/remix-tutorial-udemy
https://github.com/alexweberk/remix-tutorial-udemy
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/alexweberk/remix-tutorial-udemy
- Owner: alexweberk
- Created: 2023-11-23T06:58:20.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-23T13:45:42.000Z (about 1 year ago)
- Last Synced: 2024-12-14T20:44:35.628Z (about 1 month ago)
- Language: TypeScript
- Size: 405 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Welcome to Remix!
- [Remix Docs](https://remix.run/docs)
- [Netlify Functions Overview](https://docs.netlify.com/functions/overview)## Netlify Setup
1. Install the [Netlify CLI](https://docs.netlify.com/cli/get-started/):
```sh
npm i -g netlify-cli
```If you have previously installed the Netlify CLI, you should update it to the latest version:
```sh
npm i -g netlify-cli@latest
```2. Sign up and log in to Netlify:
```sh
netlify login
```3. Create a new site:
```sh
netlify init
```## Development
Ensure all packages are installed by running:
```sh
npm install
```Run
```sh
netlify dev
```Open up [http://localhost:3000](http://localhost:3000), and you're ready to go!
### Adding Redirects and Rewrites
To add redirects and rewrites, add them to the `netlify.toml` file. For more information about redirects and rewrites, see the [Netlify docs](https://docs.netlify.com/routing/redirects/).
### Serve your site locally
To serve your site locally in a production-like environment, run
```sh
npm run start
```Your site will be available at [http://localhost:8888](http://localhost:8888). Note that it will not auto-reload when you make changes.
## 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:
```sh
# preview deployment
netlify deploy --build# production deployment
netlify deploy --build --prod
```