Coder Social home page Coder Social logo

pems's Introduction

pems

A javascript full-stack power equipment management system.

Demo

Demo Address: Power Equipment Management System
Account: admin/admin

Screenshots

  • Login Page

login

  • List Page

list

  • Add Page

add

  • Add Popup

popup

Tech Stack

Frontend

  • Typescript
  • React
  • React-Router
  • React-Redux
  • Ant Design
  • Axios
  • GraphQL
  • AliOSS
  • i18n
  • Sass
  • ESLint
  • Babel
  • Webpack

Backend (Node)

  • Koa2
  • Express
  • Egg
  • MongoDB

Setup

Backend

  • MongoDB

Add your MongoDB path in server/config/index.js.

mongo

  • Other Config

JWT Secret, expire date, serve path also can be modified in server/config/index.js.

Frontend

  • Aliyun OSS

Set OSS_REGION, OSS_ACCESS_KEY_ID, OSS_ACCESS_KEY_SECRET, OSS_BUCKET in views/src/constants.js.

  • Home URL

Set HOME_URL in views/src/constants.js, system will redirect to this address when JWT expires.

  • API Base URL

Set SERVICE_URL in views/config/prod.env.js. (Deploy Mode)

Debug

  • build
cd views/
npm run build
  • serve page & start api server

require pm2

cd server/
npm run dev

Then you can open http://127.0.0.1:3010

Deployment

Upload website dist & server code to your server, and run npm run start in server folder. (default webpage path is /var/www/pems, you can config it in server/config/index.js)

Wechat Official Account

wechat

License

MIT License

Copyright (c) 2019 Hanran Liu

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.