Giter VIP home page Giter VIP logo

nodecloud-web's Introduction

nodecloud-web

nodecloud-web provides an interactive front-end for nodecloud. NodeCloud is a standard library to get a single API on the open cloud with multiple providers. Making open cloud easily accessible and managed.

screenshot

clone or download

$ git clone https://github.com/cloudlibz/nodecloud-web.git
$ npm i

Project Structure

server/
   package.json
   .env (to create .env, check [prepare your secret session])
client/
   package.json
...

Usage (run fullstack app on your machine)

Client Side (PORT: 8081)

$ cd client   // go to client folder
$ npm i       // npm install pacakges

// deployment for client app
$ npm start // this will compile the react code using webpack and run them at port 8081 by default

Server Side (PORT: 4000)

Environment Variables (.env)

JWT_SECRET = YOUR_JWT_SECRET

NOTE: nodecloud currently supports MICROSOFT AZURE

Add the following Azure Credentials to your .env file

AZURE_CLIENT_ID= YOUR_CLIENT_ID

AZURE_CLIENT_SECRET=YOUR_CLIENT_SECRET

AZURE_TENANT_ID=YOUR_TENANT_ID

AZURE_SUBSCRIPTION_ID=YOUR_SUBSCRIPTION_ID

AZURE_STORAGE_ACCESS_KEY=YOUR_STORAGE_ACCESS_KEY

AZURE_STORAGE_ACCOUNT=YOUR_STORAGE_ACCOUNT

AZURE_STORAGE_CONNECTION_STRING=YOUR_STORAGE_CONNECTION_STRING

Start

$ cd server   // go to server folder
$ npm i       // npm install pacakges
$ npm run // this will build the server code

Docker

$ cd nodecloud-web
$ docker-compose up

API Documentation

API docs

Screenshots

License

MIT

nodecloud-web's People

Contributors

amrita019 avatar dependabot[bot] avatar rajikaimal avatar rajitha1998 avatar rehrumesh avatar thedhejavu avatar vineet-sharma29 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

nodecloud-web's Issues

Class constructor Azure cannot be invoked without 'new'

So I was trying to setup nodecloud-web and i came across this issue and to be honest, this is one out of many issues that I have encountered. I also notice that other plugins like gcp needs to be invoked with keyword new inside the nodecloud. I can't fix issue here without a proper project setup.

nodecloud

the error seems to go away after using invoking that module function with new keyword

Docker-compose up not working

When executing command docker-compose up to install nodecloud web from docker, It gives this error.

Screenshot from 2020-01-08 09-40-03

The server and client folders are should be renamed as node-backend and react-frontend or the docker file should be modified.

environment details -

  • OS - Kalii linux 2019.04

  • Memory - 16GB

  • Node - v13.5.0

  • Docker - 19.03.5, build 633a0ea838

Login page not responsive

UI buttons and main login container div does not scale properly to smaller screen sizes making the UI unusable on smaller devices.

Device Emulated: iPhone X
Chrome Developer Tools
image

.nc.config is not passing the configured plugin as specified by nodecloud

Current Configuration

const nodeCloudAzurePlugin = require("nodecloud-azure-plugin");

providers = [
  {
    name: "azure",
    tag: "azure",
    libName: "nodecloud-azure-plugin"
  }
];
module.exports = providers;

Correct configuation

const nodeCloudAwsPlugin = require("nodecloud-aws-plugin");

const providers = [
  {
    name: "aws",
    tag: "aws",
    plugin: nodeCloudAwsPlugin
  }
];`

module.exports = providers;

azure-arm-apimanagement module missing

Upon trying to start this project with a manual installation of nodecloud-azure-plugin (#18 (comment)), the plugin makes use of a module that is not mentioned in its package.json.

Node Version: 12.3.0
This prevents the server from starting entirely unless the package is added and installed manually.
image

A modifying variable has been declared as const

Expected Behavior

  • The value of isFormValid is changed after it has been initialized which means it cannot be a const it has to be changed to a let variable.

Actual Behavior

  • const isFormValid = true;

Related code snippet

const { user } = this.state;
    const isFormValid = true;

    //Password
    if (!user.password) {
      isFormValid = false;
      this.setState({
        passwordError: "Please enter password",
        usernameError: "",
        emailError: ""
      });
    }
    //Name
    if (!user.username) {
      isFormValid = false;
      this.setState({
        usernameError: "Please enter username",
        emailError: "",
        passwordError: ""
      });
    } else if (typeof user.username !== "undefined") {
      if (!user.username.match(/^[a-zA-Z]+$/)) {
        isFormValid = false;
        this.setState({

nodecloud-azure-plugin not found

I followed the procedure for setting up nodecloud-web but i ran into a few errors listed below

The error below comes from the nodecloud-web server when i tried to run it
Error: Cannot find module 'nodecloud-azure-plugin'

While the error below comes from the npm packag when i tried to fix the error below.
npm I nodecloud-azure-plugin
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/nodecloud-azure-plugin - Not found

this error is coming from .nc.config.js inside nodecloud

nodecloud-web coded for azure only and not for other cloud providers.

nodecloud-web provides interface for nodecloud. But it seems to coded out for azure only.

in server/routes/getservices, its coded as follows:-

const nodeCloud = require("nodecloud");

const provider = nodeCloud.getProviders();
const vm = provider.azure.compute();
const network = provider.azure.network();
const blob = provider.azure.blob();

If its a issue would like work on it. Maintainers, can I work on it?

Loader doesn't stop and keeps rotating

When we login and we get to the dashboard which looks like this

Screenshot 2019-12-29 at 2 39 05 AM

After creating the virtual machine we have the option to delete it but when we delete it the server seems to not responding anymore and it keeps loading like this

Screenshot 2019-12-29 at 2 39 28 AM

Error: Cannot find module 'azure-arm-apimanagement'

I am trying to run server. However, I am getting following error:-

internal/modules/cjs/loader.js:584
    throw err;
    ^

Error: Cannot find module 'azure-arm-apimanagement'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:582:15)
    at Function.Module._load (internal/modules/cjs/loader.js:508:25)
    at Module.require (internal/modules/cjs/loader.js:637:17)
    at require (internal/modules/cjs/helpers.js:22:18)
    at Object.<anonymous> (/home/vineet/osp/nodecloud-azure-plugin/utilities/azure-api.js:1:91)
    at Module._compile (internal/modules/cjs/loader.js:701:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
    at Module.load (internal/modules/cjs/loader.js:600:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
    at Function.Module._load (internal/modules/cjs/loader.js:531:3)
    at Module.require (internal/modules/cjs/loader.js:637:17)
    at require (internal/modules/cjs/helpers.js:22:18)
    at Object.<anonymous> (/home/vineet/osp/nodecloud-azure-plugin/index.js:9:13)
    at Module._compile (internal/modules/cjs/loader.js:701:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
    at Module.load (internal/modules/cjs/loader.js:600:32)

Unable to figure out how to install azure-arm-apimanagement module.

Update README

  • Installation instructions
  • UI screenshot
  • Endpoints
  • License details

Error: Cannot find module '/usr/src/app/server/node_modules/sqlite3/lib/binding/node-v57-linux-x64/node_sqlite3.node

I am trying to run client and server services using docker-compose. However on running docker-compose up I am getting following error:-

[nodemon] starting `node server.js`
backend     | module.js:550
backend     |     throw err;
backend     |     ^
backend     | 
backend     | Error: Cannot find module '/usr/src/app/server/node_modules/sqlite3/lib/binding/node-v57-linux-x64/node_sqlite3.node'
backend     |     at Function.Module._resolveFilename (module.js:548:15)
backend     |     at Function.Module._load (module.js:475:25)
backend     |     at Module.require (module.js:597:17)
backend     |     at require (internal/module.js:11:18)
backend     |     at Object.<anonymous> (/usr/src/app/server/node_modules/sqlite3/lib/sqlite3.js:4:15)
backend     |     at Module._compile (module.js:653:30)
backend     |     at Object.Module._extensions..js (module.js:664:10)
backend     |     at Module.load (module.js:566:32)
backend     |     at tryModuleLoad (module.js:506:12)
backend     |     at Function.Module._load (module.js:498:3)
backend     | [nodemon] app crashed - waiting for file changes before starting...
nodecloud-web_sqlite_1 exited with code 0
nodecloud-web_sqlite_1 exited with code 0

I found similar issue here. And according to it nodejs should be down graded to older version.

Need comments from maintainers, what should be done? Would like work on this issue.

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.