Git Product home page Git Product logo

tsu-software-engineering-backend's Introduction

Backend for Software Engineering Project

This is the backend code written in Django for the ABC Management Inc. client management system. It will act as the mediator between the frontend and database of the project.

How to get this repo working on your local machine

NOTE: You must first start your MySQL Server on your local machine. (Make sure it can be connected to through MySQLWorkbench)

  1. Clone this repo onto your local machine.
  2. Navigate to the software-engineering-project-backend/swe-project-backend-api folder. (You will know if you are in the right folder if you see the requirements.txt file)
  3. Run the following command in your terminal from the directory:

    pip install -r requirments.txt

  4. Navigate to the software-engineering-project-backend/swe-project-backend-api/sweClassProjectBackend/sweClassProjectBackend folder. (You will know if you are in the right folder if you see the settings.py file)
  5. Create a file named ".env". (Ensure that the file extension of this file is .env and not anything else)
  6. In this file create 3 variables using this format:

    SQL_PASSWORD={Your Password to your mySQL instance}

    Ex: SQL_PASSWORD=specialpassword

    SQL_USERNAME={Your username to your mySQL instance}

    Ex: SQL_USERNAME=specialusername

    SECRET_KEY={CONTACT ME FOR THE KEY via text or email}

  7. Now navigate to the software-engineering-project/swe-project-backend-api/sweClassProjectBackend folder (You will know if you are in the right folder if you see the manage.py file) and run the following command:

    python3 manage.py runserver

  8. You may have to migrate the changes from the Django project to your mySQL instance but the command line will tell you the commands to do so.

tsu-software-engineering-backend's People

Contributors

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