Code Monkey home page Code Monkey logo

backend-dev-test's Introduction

AFEX Backend Dev Test

Your Task

  1. Get this app to work

    Installed the basic requirements and packages

  2. Change the database config to use PostgreSQL

    Added the required packages and settings to enable Django connect to PostgreSQL

  3. Config settings for dev, staging and production servers

    Changed the settings by creating a python module and splitted the settings in to the afformentioned environment based on the specific setting for each envorinment

  4. Add Two(2) security updates to the settings file

    Removed hardcoded SECRET_KEY.

    Added an env file to segregate the settings that changes based on environment and to avoid pushing sensitive settings to version control systems(VCS).

    Added SECURE_SSL_REDIRECT, SESSION_COOKIE_SECURE, CSRF_COOKIE_SECURE and SECURE_BROWSER_XSS_FILTER for production environment

A Django app has been created under /apps/ called crm

  1. Configure this app to work with the main project

    Fixed The BASE_DIR setting to match the actual directory traversion

    Installed the app in the INSTALLED_APPS settings

    Fixed The database migration conflict by making the base model abstract

  2. Two models has been created for you: "Client" and "ClientWallet":
    a. Write a CRUD option with the Client Model

    Added Two(2) app menus: Dashboard and Clients. The Clients contains the CRUD operations.

    b. Write a PUT/POST option for the Client Wallet model (i.e ability to fund a particular client's wallet)

    The Clients's Detail page contains a sub-section with the client wallet information. Added a link to fund the client's wallet

    c. Write/Configure API endpoints to fetch client (including their wallet balance)

    Added two(2) endpoints:

    /api/(for listing of the available endpoints with their appropriate verb),

    /api/clients (for fetching the lists of clients with their appropriate wallet balance)

    /api/clients/{id} (for fetching of a particular client with their appropriate wallet balance)

    N:B You are to design an appropriate frontend for task in a & b above using Django Template

  3. Set-up a web socket for the client wallet model

    Added a websocket that updates the client's wallet balance in realtime whenever the balance gets updated

  4. Write a background task that populates the Client model with users from this endpoint. This task should run every hour.

    Added a scheduler that populates the client model with users. Figured the endpoint contains duplicate records but exceptions have been contained

  5. Deploy your code to any of these cloud servers (A.W.S, Google Cloud, Azure or Heroku)

    Deployed to AWS servers. Link Here

*** Optional

  1. Configure Docker for this project

    Dockerized the application and configured docker-compose to run various services of the application

backend-dev-test's People

Contributors

adilimudassir avatar emmarex 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.