GithubHelp home page GithubHelp logo

cio-backend's Introduction

Run this app:

1. clone repo
2. install python3
3. cd into project directory
4. run "python3 -m venv venv"
5. run "source venv/bin/activate"
6. run "pip install -r requirements.txt"
7. create .env file in root directory and set the path for the .data file: 
'''
DATA_PATH=<path_string_to_data_file>
'''


The following is what mine looked like:
'''
DATA_PATH="./datastore/data/messages.1.data"
'''
8. run "flask run"

Thoughts:

1. after generating data and parsing it, noticed that one of the events has "user_id". 
Is this consistant with what we should expect with input, a mistake. I'll have to figure out later...
2. Add event in data_store feels messy, need to refactor it later
3. DataStore needs to be broken up into 3 classes: UserStore, EventStore, and DataStore
4. I need to go back and remove access to the datastore attributes...
5. I need to setup proper error handling back here...
6. I have a strong desire to abstract out a User class for the routes, to get make things more consistant, and move away from the DataStore being so generic in it's naming. Would this just become redundant though....
7. pagination is rough back here because of the deletion of users; this layer is usually abstracted away for reasons like this. For the sake of short term accuracy, I'll implement this like it'll be used directly with the frontend, and come back for the come up with a non-brute force approach. Man, I hope these ids are in order.
8. Why would a customer create request already contain a user_id, that makes no sense at all. To be consistant, I have to keep it(?) but at no point should we need to return an available user_id up to the frontend just to pass it back again. 
9. Man, it would be a terrible time to find out that Users and Customers are different in this project (they definitely are in the real thing, this project looks like an amalgamation).
10. events key on new customer response? I'll do it, but feels unnecessary.

Testing the Frontend and Backend together

Bug #1: Forgot that JS timestamps are accurate to the millisecond, creating a problem hydra... 

cio-backend's People

Contributors

norton-design avatar

Watchers

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