Giter Club home page Giter Club logo

sl-tool-console's Introduction

Social Listening Tool Console

This tool console is an internal management system for the Social Listening Tool. Through this tool, we can easily query all user information. e.g. add users, delete users and download all user information. And also we can query and download all the existing universes information. Let's get started!

Outline

This project consists a front-end and a back-end. The front-end is in the client folder, and the back-end is the server. The back-end queries the MongoDB and returns to the front-end through the API.

This is a typical MEVN full stack project for practice purposes. MEVN these 4 letters respectively indicate MongoDb / ExpressJS / Vue / NodeJS.

Setup

  1. Clone the whole project
  2. Install dependencies. Run npm install in client and server
  3. Start the server
    1. Create a .env under the server folder and add the environments to it.
    2. Run npm start to launch the server, besides we also have npm run dev for dev mode
  4. Run npm run serve under the client folder to launch the web app

Enjoy it!

Deploy

There are many ways to deploy to a remote server. Here are two methods I have succeed.

Deploy to Aliyun ECS

  1. Similar to the above setup, clone and install dependencies

  2. Build the client to create the dist folder.

    • You can run npm run build under the client folder to create the dist folder and then move it to the server folder, but we have a better way make it directly

    • Run npm run sbuild. This command can build and move it to the right place directly

  3. In this way, we use the pm2 to host our app. If you haven't install it before. Install it with npm install pm2 -g. Refer: pm2

  4. Under the server folder, run NODE_ENV=production pm2 start app.js --update-env

  5. Done!

Deploy to Azure App Service

Similar to the above, build and move the dist to the server folder. We need to deploy the server folder to the Azure App Service. I recommend to use the VS code extension to deploy. This is quite easy. Refer: Deploy Express.js to Azure App Service using Visual Studio Code

Feature list

  • fetch all users
  • search user
  • add user
  • delete user
  • download user list
  • fetch existing universes
  • search universe
  • download all universes
  • login Page
  • adapt to small screen
  • enter to login in login page
  • deploy to Azure
  • jwt

Bug list

  • list scroll issue keep the bar at the top

sl-tool-console's People

Contributors

hjfrun avatar

Stargazers

 avatar

Watchers

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