Giter Club home page Giter Club logo

sigmatest's Introduction

Vintage

Folder structure

.
├── backend 
│   ├── app          # Local app
│   |   └── ...
│   ├── vintage      # Core project folder
│   |   └── ...
│   ├── static   
│   |   └── ...
│   ├── templates   
│   |   └── ...
│   ├── manage.py  
│   └── Dockerfile   
├── front
│   ├── node_modules
│   |   └── ...
│   ├── public
│   |   └── ...
│   ├── src
│   |   ├── assets
|   │   |   └── ...
│   |   ├── components
|   │   |   └── ...
|   │   ├── App.vue
│   |   └── ...
│   ├── Dockerfile 
│   └── ...             
├── .env                
├── docker-compose.yml
├── .gitignore
└── README.md

Environment

To start the application it is necessary to include the .env file

Build

docker-compose build

Running the application

The application is built with Node.js and already has all environment configured with docker. To start the application you will need docker and docker-compose installed on the machine. Having that you may run:

docker-compose up

And then the application and database will be started:

Starting vintage_web_front ... done
Starting vintage_mailhog_1 ... done
Starting vintage_db        ... done
Starting vintage_web_api     ... done

The application will be avaible on PORT 8000 and 8080_ by default, but it's configurable via docker-compose.yml file as an environment variable.

Running makemigrations

docker exec -ti vintage_web_api python /code/manage.py makemigrations

Running empty makemigrations

docker exec -ti vintage_web_api python /code/manage.py makemigrations app_name --empty

Running the migrations

docker exec -ti vintage_web_api python /code/manage.py migrate

Create super user

docker exec -ti vintage_web_api python /code/manage.py createsuperuser

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.