Giter Site home page Giter Site logo

darkstoreapp-testproject's Introduction

DarkStoreApp-testproject

This is test task according to https://www.notion.so/darkstoreapp/Portfolio-Manager-API-Python-3f79ed6c559e4ef8ba6246108a76f3b0.

How to run this project:

  1. Clone this repo
  2. Create virtual enviroment with this command: python -m venv .venv
  3. Activate venv: source .venv/bin/activate
  4. Copy repo-venv into local enviroment: pip install -r requirements.txt
  5. Create .env file with FINNHUB_API_KEY: echo 'FINNHUB_API_KEY=your_key' > .env. The key can be obtained in the fihhhub dashboard.
  6. Run the server: uvicorn main:app --reload

How to use this project:

First of all you need to create an admin user, for that, please, /admin post methon in "Started Requirements" tag. You need this user to have access to "Admin Panel". Then you should login with admin user parameters, login: admin, password: secret. After that you have access to all available methods. You also can create your own user with Create User(3rd methon in "Started Requirements"). It will provide you access with all methods, not admin's ones.

Bugs that i didn't manage to fix:

  1. When you are creating new profile(post Create Profile method) please make shure that field user_id = your user id. You can see your user id while creating user, or you can get JsonWebTocken in 'Generate Token' method and then go to https://jwt.io/ and paste your token.
  2. Profile is not working with float values.
  3. Docker compose is not working.

darkstoreapp-testproject's People

Contributors

sk-darkstore avatar dreamxgod 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.