Skip to content

tbson/24ho

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

24HOrder service

For development environment

Step 1

Issue a selfsign SSL certificate: use https://github.com/tbson/localca to create one.

Step 2

Copy all files to nginx/ssl/app_name

Add - ../../web/24ho/api/public/:/resource/public/24ho to volumes of nginx if not exist.

Step 3

./setup app_name domain.test dev
docker-compose build
./restart

# Migrate tables:
./manage migrate

# Start django dev server:
./devserver

# Start webpack dev server:
./yarn start

# Seeding users:
# Staff: admin/password
# Customer: user/password
./manage user_seeding

# Running test:
./test

Step 4

Prepare accounts for logging

./manage collectstatic

Then go to django admin interface: https://24ho.test/dadmin/

  • Create new user in Users section and give this user all permissions.
  • Add an administrator in Administrators section using newly created user.
  • Login: https://24ho.test/admin/

For production environment

Step 1

Issue a SSL for domain.com using Let’s Encrypt.

Step 2

Add

- /etc/letsencrypt:/resource/ssl

- ../../code/24ho/api/public/:/resourece/public/24ho

To volumes of nginx if not exist.

Step 3

./setup app_name domain.com pro
docker-compose build

Place db.sql file in docker folder

Uncomment

# - ./db.sql:/docker-entrypoint-initdb.d/db.sql

./up

About

24HOrder service

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published