Giter Site home page Giter Site logo

fruitboss-revamp's Introduction

Build a website using React, Python, DJANGO & MYSQL(RPDM)

DevOps approach towards building a webshop using RPDM. "You build it, you run it culture"

steps

    1. Build the website and Test it locally
    1. Package it into a container
    1. Deploy and host it on AWS or Hetzner as a microservice
    1. Create a domain & Setup a load balancer ``

I - Environment setup

Install Python, mysql, nodejs and django module on venv Postman to test your API - ( curl -o- "https://dl-cli.pstmn.io/install/linux64.sh" | sh)

  • pip install django
  • pip install djangorestframework
  • pip install django-cors-headers
  • django-admin startproject fruitboss // cd fruitboss
  • python manage.py runserver ## to run a test server

II - build an application

  • python manage.py startapp EmployeeApp

go to settings.py under INSTALLED_APPS add 'rest_framework, corsheaders, and EmployeeApp(the newly created app)

III - create your models

  • Create your models in employeeApp models.py
  • install pip install pymysql to connect to the mysql DB

Then add the database connecting in settings.py

  • pip install pymysql
  • python3 manage.py makemigrations EmployeeApp
  • pip install cryptography #for mysql sql caching_sha2_password authentication test#

IV - Migrate Database

  • python manage.py migrate EmployeeApp | Add employeeApp.serializer.py for the python data ->
  • Add EmployeeApp.urls, EmployeeApp.views.py
  • python manage.py runserver ## to run a built server
  • Test again - python manage.py runserver

V - Test API using Postman

fruitboss-revamp's People

Contributors

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