Code Monkey home page Code Monkey logo

formaloo's Introduction

Formaloo Appstore

Extensive service for publishing and purchasing apps.

Powered by Django and DRF.

Build instructions for Docker (recommended)

Clone source code

git clone https://github.com/0xNima/formaloo.git

Rename .env-template

cd formaloo/

mv .env-template .env

Rename .env-template file to .env and fill the variables with proper values

SERVICE_PORT=8000   # service will run in this port.

SUPERUSER_USERNAME=admin   # superuser username which will be created automatically

SUPERUSER_PASSWORD=admin   # superuser password which will be created automatically

PRODUCTION=No    # No: development environment, Yes: production

LITE_DB=No    # set Yes if you want to use SQLite instead of Postgres. Note: this will be ignored in production

DB_NAME=appstore

DB_USER=postgres

DB_PASS=password

DB_HOST=localhost    # this will be override by docker-compose

DB_PORT=5432

DJANGO_SECRET_KEY=put-an-super-secure-secret-here    # put a secure key here

Start the project

docker-compose up -d

Logs

All logs exist in ./logs folder.

Build instructions without Docker

Clone source code

git clone https://github.com/0xNima/formaloo.git

Rename .env-template

cd formaloo/

mv .env-template .env

change environment variables with appropriate values. You can see above for detail of each variable.

Create Virtualenv and install prerequisite

python3 -m venv venv

source venv/bin/activate

pip install -r requirements.txt

Run tests

python manage.py test apps

Create db and Run migrations

python manage.py create_db && \
python manage.py makemigrations && \
python manage.py migrate && \
python manage.py create_superuser && \
python manage.py collectstatic --noinput && \
python manage.py runserver

Documentations

Navigate to http://localhost:8000/api/redoc/ to see the full documentation of API.

Integration with Dashboard service

Appstore can be integrated with any dashboard service for monitoring purposes. For decoupling this process from our system, we implemented an event-driven architecture. Appstore will publish metrics as JSON payloads through the event queues. On the other side, the Dashboard service will consume and use these events.

Recommended Design

formaloo's People

Contributors

0xnima 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.