https://github.com/alexrogalskiy/nteract
Nteract template
https://github.com/alexrogalskiy/nteract
Last synced: 3 months ago
JSON representation
Nteract template
- Host: GitHub
- URL: https://github.com/alexrogalskiy/nteract
- Owner: AlexRogalskiy
- License: bsd-3-clause
- Created: 2020-12-21T23:51:46.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2025-03-13T05:02:50.000Z (3 months ago)
- Last Synced: 2025-03-13T06:18:45.626Z (3 months ago)
- Language: JavaScript
- Size: 2.09 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# nteract.io
Welcome! This is the main site for nteract!
We serve an express app that does [server rendered react using next](https://zeit.co/blog/next) and proxy `https://nteract.github.io` for all other routes. 😁
## Development
```
git clone https://github.com/nteract/nteract.io
cd nteract.io
yarn
yarn dev
```The `yarn dev` command starts a server locally. Navigate to `localhost:8080` in
your browser to view a development version of the site.## Deployment
We run [nteract.io](https://nteract.io/) on [now.sh](https://zeit.co/now). If your PR gets merged, it will automatically get deployed and if successful aliased as the 🆕 nteract.io. 🎉
### Deploying by Hand
You'll need `now` to deploy:
```
npm install -g now
```To do a test deployment run:
```
now
```It should look like this:
```
$ now
> Deploying ~/code/src/github.com/nteract/nteract.io
> Using Node.js 7.6.0 (default)
> Ready! https://nteractio-tzdjehuhzz.now.sh (copied to clipboard) [928ms]
> Upload [====================] 100% 0.0s
> Sync complete (952B) [1s]
> Initializing…
> Building
> ▲ npm install
> ⧗ Installing:
> ‣ express@^4.15.0
> ‣ http-proxy@^1.15.1
> ‣ next@^2.0.0-beta
> ‣ react@^15.4.2
> ‣ react-dom@^15.4.2
> ▲ npm install
> ⧗ Installing:
> ‣ http-proxy@^1.15.1
> ‣ express@^4.15.0
> ‣ next@^2.0.0-beta
> ‣ react@^15.4.2
> ‣ react-dom@^15.4.2
> ✓ Installed 544 modules [9s]
> ▲ npm run build
> > [email protected] build /home/nowuser/src
> > next build
> (node:94) DeprecationWarning: loaderUtils.parseQuery() received a non-string value which can be problematic, see https://github.com/webpack/loader-utils/issues/56
> parseQuery() will be replaced with getOptions() in the next major version of loader-utils.
> ▲ npm start
> > [email protected] start /home/nowuser/src
> > NODE_ENV=production node index.js
> Deployment complete!
```If you need to alias the site to make it live, verify that it's working then run:
```
now --prod
```