Skip to content

farankhalid520/Building-Dimensions-Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NrlyzeAB_Task

#To set-up mySQL Database and Server Connection

  • Create a new connection on any mySQL database server (I used mySQL Workbench)
  • Import the SQL Dump file provided in the repository

#To set-up Django Backend

Run the following commands: 1- pip install virtualenv 2- virtualenv env (to create the virtual environment) 3- env\scripts\activate (to run the virtual environemnt)

In the virtual environment install the following:

  • pip install django
  • pip install djangorestframework
  • pip3.11 install mysqlclient
  • pip install django-cors-headers

Setting up mySQL database with Django:

  • In settings.py file update the Database list with the credentials of your mySQL database server connection

To run the django backend server

  • cd djangoAPI
  • python manage.py makemigrations
  • python manage.py migrate (This will set-up mySQL database with the django backend)
  • python manage.py runserver

#To set-up React frontend

  • cd my-app
  • npm install
  • npm start

Note: Make sure Node.js is installed on the system beforehand

About

NrlyzeAB Task

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors