Coder Social home page Coder Social logo

openstock's Introduction

Open Stock

Ceci est un site d'annonce minimaliste.

Les fonctionnalités:

  • Gestion des annonces par organisations
  • Compression automatique des images
  • Création de compte et authentification soit par invitation soit par système CAS
  • PAS de messagerie interne, prise de contact par affichage de l'adresse email.

Les organisations

Une annonce est ratachée à une organisation et non à une personne. Cependant chaque personne possède une organisation qui lui est propre dite Personnelle.

Ensuite une personne peut créer des organisations auquelles elle pourra ajouter des manageurs. Ceci permet de gerer à plusieurs une même organisation.

Les annonces

Afin de limité la taille de la base de donnée, une seule annonce à l'état de brouillon est authorisée par organisation.

Les annonces ont une date d'expiration. Elles sont définitivement supprimées du système 30 jours après leur expiration. Il est possible de retirer la date d'expiration mais cela n'est pas conseillé. Il vaut mieux mettre une date d'expiration très longue comme 1 an voir plus.

Techos

  • Python django
  • Vue JS

Installation

A executer dans le dossier du dépot

# configurer un environement virtuel python
cp openstock/local_settings.py.example openstock/local_settings.py
edit openstock/local_settings.py
edit openstock/settings.py
# Vous devez générer une nouvelle clé secrète !!!
sudo edit /etc/django_secret_key.txt
pip install -r requirements.txt
python manage.py migrate
# if not CAS authentication, create first user
python manage.py createsuperuser


cd frontend
edit .env
edit src/views/HomeView.vue
edit src/views/AboutView.vue
edit src/views/LegalsView.vue
npm install
npm run build

Si vous utilisez un reverse proxy type nginx, les deux dossiers à servir en statique sont staticfiles et media

Licensing

The source code is licensed under GPL v3. License is available here.

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.