Coder Social home page Coder Social logo

pixel_pipers_backend's Introduction

Pixel Pipers Backend

This repository contains the backend code for the Pixel Pipers application.

Setup

Clone the repository:

git clone https://github.com/darkneux/Pixel_Pipers_Backend.git

Create a credentials.json file in the root directory of the project with the following structure:

{
  "username": "<your_username>",
  "password": "<your_password>",
  "token": "<create_a_token>"
}

Replace <your_username> and <your_password> with your desired username and password.
Generate a token with 12 characters and replace <create_a_token>.

Cloudinary Credentials:

To enable image uploading functionality, you'll need to add your Cloudinary credentials to app.py. Follow these steps:

  1. Obtain your Cloudinary API credentials (API Key, API Secret, Cloud Name).
  2. Open app.py.
  3. Find the section where Cloudinary configuration is set up (typically near the top of the file).
  4. Replace the placeholders with your actual Cloudinary credentials:
cloudinary.config( 
  cloud_name = "<your_cloud_name>", 
  api_key = "<your_api_key>", 
  api_secret = "<your_api_secret>"
)

Run the application:

python app.py

Docker Setup

Alternatively, you can run the application using Docker.

Build Docker Image:

Build the Docker image by running the following command from the root directory of the project:

sudo docker build -t <image_name> .

Replace <image_name> with your desired name for the Docker image.

Run Docker Container:

Once the Docker image is built, you can run the application within a Docker container using the following command:

sudo docker run -p 80:5000 -v ./PIPE_model:/code/ <image_name>
  • -p 80:5000 maps port 80 of the host machine to port 5000 of the Docker container, allowing access to the application.
  • -v ./PIPE_model:/code/ mounts the PIPE_model directory from the host machine to /code/ within the container, ensuring that the application can access the required files.

pixel_pipers_backend's People

Contributors

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