Sign inSign up

bananabb/node

By bananabb

•Updated 7 months ago

Add package manager and common tools to node environment

Image
Web servers
0

1.2K

bananabb/node repository overview

⁠node

This repository contains Dockerfile of node in ubuntu

⁠Getting Started

These instructions will get you to build node in your docker. See Installation for notes on how to build your node on your are live system.

⁠Installation
  1. Install Docker⁠.
  2. Download the sources from public Docker Hub⁠ or run Usage tag provided.
  3. Run Create Project tag in /var/www to build your project
⁠Usage
docker run -itd --name node -v {your directory}:/var/www -p 3000:3000 bananabb/node
docker exec -it node /bin/bash
node -v
npm --version
⁠Create Express Project
/create-express.sh
npm start
⁠Create Nest.js
/create-nestjs.sh
nest new {YourProject}
⁠Create React Project
# React
npx create-react-app example

cd {YourProject}
npm start
⁠Create React Library
/create-react-library.sh
npx create-react-library your-app-name

cd {your-app-name}
npm start

# Testing
cd example
npm start

Open http://localhost:3000/ in your browser of choice Now you can enjoy your coding in your container.

⁠License

MIT © BananaBb⁠

Tag summary

Content type

Image

Digest

sha256:87737910e…

Size

375.9 MB

Last updated

7 months ago

docker pull bananabb/node