GithubHelp home page GithubHelp logo

helias / agentsim-portal Goto Github PK

View Code? Open in Web Editor NEW
2.0 4.0 0.0 5.03 MB

A web portal for AgentSimJS

HTML 29.64% JavaScript 64.15% CSS 6.20%
angularjs angular-ui angular-ui-router bootstrap nodejs nodejs-api mongodb expressjs

agentsim-portal's Introduction

AgentSim-Portal

A web portal for AgentSimJS

Requirements

  • NodeJS & npm
  • MongoDB
  • AgentSimJS

Install Requirements on Ubuntu 16.04

Install NodeJS and npm

$ curl -sL https://deb.nodesource.com/setup_6.x -o nodesource_setup.sh
$ ./nodesource_setup.sh
$ sudo apt install nodejs

Install MongoDB

$ sudo apt install mongodb-server

Download AgentSimJS, go in the directory project and run:

$ git submodule init
$ git submodule update

Configure

Copy the file config.js.dist into config.js and configure it like:

module.exports = {
    'secret': 'your_secret_string',
    'database': "mongodb://localhost:27017/db_name",
    'email': '[email protected]',
    'password': 'password',
    'home_path': 'http://localhost:8080'
};

Run your application:

$ node server.js

Now you can visit http://localhost:8080/ and see the output of the project!

agentsim-portal's People

Contributors

alemidolo avatar helias avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

agentsim-portal's Issues

Enhancements (reports)

  • Description of the scripts
  • Preview-Edit, same page (half screen)
  • Preload, eval() in the edit/preview page
  • Improve the text editor
  • Cross Site Scripting (XSS),
  • User panel administrator

[Frontend] Login + Upload scripts

  • Completare il login
  • Creare interfaccia script che permetta all'utente di caricare i propri script
  • Permettere all'utente di visualizzare gli script
  • Permettere ad un utente di registrarsi
  • handling token

API route /scripts

Creare una route /scripts che permette di visualizzare tutti gli scripts degli utenti.
Inserire il parametro "user" per poter cercare gli script in base all'utente

[Backend] Improve routes

  • improve token handling (upload)
  • improve /register route, check if exists email and/or username.
  • make email_verify and nick_verify routes
  • make modify route
  • show in /scripts the name of the user and remove ./upload/ in the path script

Enhancements

Backend

  • redirect after verify (into #/login)
  • check if user load the same script
  • check in the route modify/upload if already exists the file
  • save file like name_file-_id.js
  • make route getExpireTime (post
  • use "aggregate" instead of record "owner" to get the username

Frontend

  • Redirect after register
  • Frontend modify
  • Handling token, timer and diff timer with getExpireTime route

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.