Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/midnightmonster/limiting-reagents
A simple svelte-based chemical reaction simulation
https://github.com/midnightmonster/limiting-reagents
Last synced: about 17 hours ago
JSON representation
A simple svelte-based chemical reaction simulation
- Host: GitHub
- URL: https://github.com/midnightmonster/limiting-reagents
- Owner: midnightmonster
- Created: 2021-06-12T16:25:22.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-06-18T13:01:55.000Z (over 3 years ago)
- Last Synced: 2024-10-22T02:18:33.462Z (17 days ago)
- Language: JavaScript
- Size: 35.2 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Limiting Reagant Simulator
## License
Free to use and adapt under [CC BY-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/). Also, feel free to read and borrow any techniques that are useful. If you for some reason have some commercial use for this, get in touch.
## Developing
Install the dependencies...
```bash
git clone [email protected]:midnightmonster/limiting-reagents.git
cd limiting-reagents
npm install
```...then start [Rollup](https://rollupjs.org):
```bash
npm run dev
```Navigate to [localhost:5000](http://localhost:5000). You should see the app running.
By default, the server will only respond to requests from localhost. To allow connections from other computers, edit the `sirv` commands in package.json to include the option `--host 0.0.0.0`.
If you're using [Visual Studio Code](https://code.visualstudio.com/) I recommend installing the official extension [Svelte for VS Code](https://marketplace.visualstudio.com/items?itemName=svelte.svelte-vscode). If you are using other editors you may need to install a plugin in order to get syntax highlighting and intellisense.
## Production build, run, deploy
To create an optimised version of the app:
```bash
npm run build
```You can run the newly built app with `npm run start`. This uses [sirv](https://github.com/lukeed/sirv), which is included in the package.json's `dependencies` so that the app will work if you deploy to platforms like [Heroku](https://heroku.com).
## Deploy
You can **deploy to netlify** by just dragging the `public` folder into a netlify deploy drop zone after a build.
## More deployment options (suggestions from Svelte template, haven't tried)
### With [Vercel](https://vercel.com)
Install `vercel` if you haven't already:
```bash
npm install -g vercel
```Then, from within your project folder:
```bash
cd public
vercel deploy --name my-project
```### With [surge](https://surge.sh/)
Install `surge` if you haven't already:
```bash
npm install -g surge
```Then, from within your project folder:
```bash
npm run build
surge public my-project.surge.sh
```