Skip to content

sh-andriy/CRYPTEX

Repository files navigation

Build Status

₿ CRYTPEX | The goal of a Project


CRYPTEX image

CRYPTEX - is a website where users can easily view information about crypto they own and manage their holdings. After registering on CRYPTEX, users will be able to add widgets for each cryptocurrency they own, specifying the type of a coin and the amount they have. These widgets will be displayed on the Home Page for a quick and easy access.

To get the necessary data about each cryptocurrency, the website will be using the Binance API, which provides real-time information on cryptocurrency prices, market trends, and more. This data will be stored in a database and used to update the user's holdings and widget displays.

My website will have three or more tables in a database that are properly connected with each other.

Overall, the website will provide a streamlined way for users to track their cryptocurrency investments and stay informed about the profit they made on crypto.


To set up a project follow this steps:

1. Clone repo:

git clone https://github.com/sh-andriy/CRYPTEX.git

2. Activate virtual environment:

virtualenv venv
source env/bin/activate

3. Install pip and upgrade it:

python -m ensurepip

or

python3 -m ensurepip

ugrade

python3 -m pip install –upgrade pip

4. Install all the project dependencies:

pip install -r requirements.txt

or

pip install .

Configure MySQL Database:


5. Set these environmental variables in .env file:

DB_HOST=<host>
DB_USERNAME=<username>
DB_PASSWORD=<password>
SECRET_KEY=<something>

6. Run migrations:

  • flask db init
  • flask db migrate
  • flask db upgrade

Run server:

flask run

or run server.sh file

Congrats! You've gained access to the following:


Web App:

localhost:5000/
localhost:5000/login
localhost:5000/register
localhost:5000/add-balance
localhost:5000/edit-balance/<int:balance_id>
localhost:5000/delete-balance/<int:balance_id>
localhost:5000/logout

Web Service:

localhost:5000/api/v1/users
localhost:5000/api/v1/users/<int:id>
localhost:5000/api/v1/coins
localhost:5000/api/v1/balances
localhost:5000/api/v1/balances/<int:id>

About

Epam project using Flask

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published