GithubHelp home page GithubHelp logo

express-oracle's Introduction

Local Installation

First you need to install Oracle Instant Client locally.

How to do it, you can see here https://github.com/oracle/node-oracledb#-installation

git clone [email protected]:apechkin/express-oracle.git
cd express-oracle
npm install

In project path create .env file, with your configuration, for example

DB_HOST_PROD=192.168.1.10
DB_USER_PROD=YOUR_DB_USER
DB_PASS_PROD=YOUR_DB_PASS

DB_HOST_DEV=192.168.1.25
DB_USER_DEV=YOUR_DB_DEV_USER
DB_PASS_DEV=YOUR_DB_DEV_PASS

DB_PORT=1521
DB_SERVICE=YOU_SERVICE_NAME

NODE_PORT=1337

To test application in developments mode, run command:

npm run watch

For production environments

NODE_ENV=production npm run start

Docker

git clone [email protected]:apechkin/express-oracle.git
cd express-oracle

In project path create .env file, with your configuration, for example

DB_HOST_PROD=192.168.1.10
DB_USER_PROD=YOUR_DB_USER
DB_PASS_PROD=YOUR_DB_PASS

DB_HOST_DEV=192.168.1.25
DB_USER_DEV=YOUR_DB_DEV_USER
DB_PASS_DEV=YOUR_DB_DEV_PASS

DB_PORT=1521
DB_SERVICE=YOU_SERVICE_NAME

NODE_PORT=1337

Then run command:

docker build --tag exoracle .

This will create the exoracle image and pull in the necessary dependencies.

Once done, run the Docker image and map the port to whatever you wish on your host. In this example, we simply map port 3000 of the host to port 1337 of the Docker:

docker run -d -p 3000:1337 --restart="always" exoracle

Verify the deployment by navigating to your server address in your preferred browser.

127.0.0.1:3000

express-oracle's People

Contributors

apechkin 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.