/sample_api

Sample API Environment

Primary LanguageJavaScriptGNU General Public License v3.0GPL-3.0

sample_api

Sample API Environment

  $ tree .
  .
  ├── Dockerfile
  ├── LICENSE
  ├── README.md
  ├── conf.d
  │   └── nginx
  │       ├── nginx.conf
  │       └── uwsgi_params
  ├── docker-compose.yml
  ├── env.d
  │   └── dev.env
  ├── requirements.txt
  ├── sql.d
  │   └── init.sql
  ├── src
  └── uwsgi.d
      └── dev.ini

  $ vi .env
  ENV=dev
  API_NAME=sample_api

  $ source .env

  $ docker-compose build

  $ docker-compose run api django-admin startproject $API_NAME .

  $ sudo chown $USER:$USER -R src
  
  $ docker-compose up -d