Coder Social home page Coder Social logo

erpsystem's Introduction

ERP System for Discrete Manufacturing Companies

Follow instructions to run the application on your PC

Requirements

  • Python 3.10
  • MySQL

Setup

To run this project, you need to have Python 3.10 installed on your computer. open a command prompt window, then follow these steps:

  1. Clone this repository to your local machine.

    git clone https://github.com/ziyanoffl/ERPsystem.git
    cd ERPsystem
  2. Create a virtual environment with the command python -m venv venv

  3. Activate the virtual environment with the command venv/Scripts/activate

  4. Install the requirements with the command pip install -r requirements.txt

  5. Create a .env file in the project root and set the necessary environment variables.

     OPENAI_API_KEY=your_openai_key
     SECRET_KEY='django-insecure-^!+b-i-si6ape9v8*+c*nvbn^s#usv(+m&(6@v(5ih+93mpmu@'
    
     #database settings
     DB_NAME=erp_system
     DB_USER=root
     DB_PASSWORD=123456789
     DB_HOST=localhost
     DB_PORT=3306
  6. Create a database in mysql with the name "erp_system"

     mysql -u root -p -e "CREATE DATABASE erp_system"
  7. Import sample data from mysql file to the database

     mysql -u root -p erp_system < erp_system.sql
  8. Apply database migrations:

    python manage.py makemigrations
     python manage.py migrate
  9. Create a superuser account for the Django admin:

    python manage.py createsuperuser
  10. Run the application with the command python manage.py runserver

  11. Open your browser and go to http://127.0.0.1:8000

erpsystem's People

Contributors

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