GithubHelp home page GithubHelp logo

shiki-boy / elec-board Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 777 KB

An electricity board applications request dashboard

Makefile 0.63% Dockerfile 0.39% Python 28.59% HTML 0.88% Shell 0.82% JavaScript 50.85% SCSS 17.83%

elec-board's Introduction

EB - Electricity Board

How do I get this set up on my system?

You would need to have docker installed in your system to run this. Install Docker desktop

Backend setup

  • run cp .env.template .env - that will create a .env file
  • run docker-compose up - this will build the docker containers (if they are not there) and start the containers
  • run docker-compose up -d - if you don't want to keep the docker logs running after docker-compose up
  • the backend will run on localhost:8000
  • docker-compose logs -f service-name-here - to see the logs, service-name = backend | postgres | ...

Frontend setup

  • run cd frontend
  • run pnpm i
  • run pnpm dev - to run the dev server
  • run pnpm build - to build the frontend

Note: Frontend can also be built by docker-compose up frontend. This will create a dist directory inside frontend folder.

The frontend dist folder is getting served by django

To stop the server run docker-compose down


How to see mails

  • The mails are sent to mailhog on localhost:8025

Load seed data in DB

  • run make bash
  • run python manage.py loaddata seed.json

Some common commands

  • make bash - takes you inside the backend docker container running
  • make shell- runs django shell_plus inside the backend container
  • refer to the Makefile for some more commands

elec-board's People

Contributors

shiki-boy avatar

Stargazers

 avatar

Watchers

 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.