https://github.com/vivek-nexus/pantograph-catenary-model-ui
https://github.com/vivek-nexus/pantograph-catenary-model-ui
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/vivek-nexus/pantograph-catenary-model-ui
- Owner: vivek-nexus
- Created: 2023-06-29T04:04:47.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-25T04:45:24.000Z (over 1 year ago)
- Last Synced: 2025-02-10T04:15:01.380Z (4 months ago)
- Language: JavaScript
- Homepage: https://www.vivek.nexus/pantograph-catenary-model-ui/
- Size: 49.8 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Pantograph catenary model UI
Deployed at https://vivek-nexus.github.io/pantograph-catenary-model-ui/---
## Pre-requisities
- `node`
- `yarn`---
## Run locally
1. Clone the repository
2. Install all the pre-requisities for your OS
3. Run `yarn` to install all packages
4. Run `yarn dev` to view on the site on `localhost:3000`## Deployment
Make sure to do all the steps below, in the same order.1. In `next.config.js`, configure `LINK_PREFIX`, `basePath` and `assetPrefix`. Change to blank value if the webpage is served directly from root of the domain.
2. ~~In `_document.js`, update the meta tags that specify `property="og:url"` and `property="og:image"`, with the absolute URL of the domain where the website will be deployed.~~
4. Run `yarn build && yarn export` to generate static HTML.
5. Static HTML is dumped to `out` directory of the project. Grab the files and host it on any server.
6. Optionally, automate these steps with a deployment script of your choice. See a sample deployment script for Github actions [here](.github/workflows/nextjs.yml).