Giter Site home page Giter Site logo

nemanjamart / nectar Goto Github PK

View Code? Open in Web Editor NEW

This project forked from adsabs/nectar

0.0 0.0 0.0 24.8 MB

:hibiscus: Experimental server-side rendered ADS implementation

License: GNU General Public License v2.0

JavaScript 1.36% Dockerfile 0.23% TypeScript 93.95% CSS 4.45% Shell 0.01%

nectar's Introduction

Nectar

Getting started

NodeJS

Install the JavaScript Tool Manager Volta:

curl https://get.volta.sh | bash

Volta gets installed in $HOME/.volta/, and it adds to $HOME/.bashrc the following lines:

export VOLTA_HOME="$HOME/.volta"
export PATH="$VOLTA_HOME/bin:$PATH"

Therefore, it will be necessary to close and open again the terminal or run:

source $HOME/.bashrc

Once this is done, anytime that we run node or yarn within nectar's directory, volta will kick in and read the package.json file, which can contain this definition:

"volta": {
  "node": "14.16.1",
  "yarn": "1.22.10"
}

Therefore, volta will automatically download/enable the node and yarn version specified in package.json.

Dependencies

Install the project dependencies:

yarn install --pure-lockfile

Development

Start the development server:

yarn dev

Run tests:

yarn test

Run storybook:

yarn storybook

To run cypress, start the production server in one terminal:

yarn start

And without closing it, open a new terminal and run cypress:

yarn cypress:run

Production build

Build the application:

yarn build

And start production server:

yarn start

Usage with Docker

Build the docker image:

docker build -t nectar .

Production

Start the production server inside a container:

docker run -it --rm --name nectar -p 8000:8000 -p 6006:6006 nectar yarn start

Development

Create a container mounting the current directory in the /app/ and start a bash shell to run any desired commands:

docker run -it --rm --name nectar -p 8000:8000 -p 6006:6006 -v $PWD:/app/ nectar bash

nectar's People

Contributors

thostetler avatar shinyichen avatar dependabot[bot] avatar marblestation avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.