Giter Club home page Giter Club logo

dj-sequencer's Introduction

Sequencer App

This is a Django based web application that allows users to create, edit, delete and view number sequences.

Features

  • Admin can create a department.
  • Admin can create a document.
  • Admin can create a year.
  • Admin can assign users to a department and assign role (admin, user)
  • Admin department can create a sequence using the year, document and department.
  • Admin department can assign other users to the department.
  • Users can create a emission using the sequence.
  • Users can view the emission.
  • Users can update the emission.
  • Users can upload files to the emission.
  • Admin department can view all the emissions.
  • Admin department can reassign the emission to another user.
  • Admin department can receive the emission.
  • Admin department can view the emission files.

Environment Setup

To setup the environment, run the following command.

pip install -r requirements.txt

To environment variables, create a .env file in the root directory copy the content from .env.example and update the values.

cp .env.example .env

If variable DJANGO_DATABASE_URL is not set, for default sqlite database will be used. This configuration is in settings.py file.

For Google OAuth

Create a google app to obtain a key and secret through the developer console.

Google Developer Console https://console.developers.google.com/

After you create a project you will have to create a "Client ID" and fill in some project details for the consent form that will be presented to the client.

Under "APIs & auth" go to "Credentials" and create a new Client ID. Probably you will want a "Web application" Client ID. Provide your domain name or test domain name in "Authorized JavaScript origins". Finally fill in http://127.0.0.1:8000/accounts/google/login/callback/ in the "Authorized redirect URI" field. You can fill multiple URLs, one for each test domain.

After creating the Client ID you will copy the "Client ID" and "Client secret" to the .env file.

For Start App

To setup the database, run the following command.

python manage.py migrate

To run the server, use the following command.

python manage.py runserver

To create a superuser, use the following command.

python manage.py createsuperuser

For Docker

To build the docker image, use the following command.

docker compose build

To run the docker image, use the following command.

docker compose up

dj-sequencer's People

Contributors

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