adventurelookup-backend
                                
                                 adventurelookup-backend copied to clipboard
                                
                                    adventurelookup-backend copied to clipboard
                            
                            
                            
                        Platform, Framework, Database software
adventurelookup
A searchable tool, AdventureLookup.com, that will allow Dungeon Masters to find the adventure they're looking for.
Getting started
The development environment makes use of Docker and two associated tools:
If you are using OS X or Windows, you will need the Docker Toolbox. If you are on a native Linux platform, you can download the two tools individually here and here.
Env
There is an .env file where you can tweak the settings for the project. (Recommended for production)
If you're using a different IP than
127.0.0.1to access the site make sure to modify theBASE_DOMAINin.envfile.
Once you have the tools installed follow these steps:
- 
Create a virtual machine to host the containers: docker-machine create -d virtualbox devYou can call the machine anything you want, but we'll be using dev
- 
Set up your shell to use to make use of the machine: // Windows @FOR /f "tokens=*" %i IN ('docker-machine env dev') DO @%i // OS X / Linux eval $(docker-machine env dev)
- 
Build the containers: docker-compose -f docker-compose.yml -f dev.yml build
- 
Start the containers: docker-compose -f docker-compose.yml -f dev.yml up -dThe -dflag means we'll be running it as a daemon. If you want to run it in the foreground (handy to get direct log output), omit the -d To get log output otherwise, rundocker-compose logs
You now have the base setup up and running. The application will auto-reload when code changes, so you can see your changes live.
To check that everything is running smoothly, you can run docker-compose ps
and your output should look similar to this:
Name                         Command               State                    Ports
--------------------------------------------------------------------------------------------------------------
adventurelookup_nginx_1      nginx -g daemon off;             Up      0.0.0.0:443->443/tcp, 0.0.0.0:80->80/tcp
adventurelookup_postgres_1   /docker-entrypoint.sh postgres   Up      0.0.0.0:5432->5432/tcp
adventurelookup_api_1        /usr/local/bin/gunicorn ad ...   Up      0.0.0.0:8000->8000/tcp
However, no database tables or content has been setup and the static files have not been collected. We'll do this now:
On Windows, using
docker-compose runallows only for non-interactive mode mandated by the-dflag. If you want to see the output of your commands (without running the log command), you can do run the following command:
docker exec adventurelookup_api_1 <command>For OS X and Linux, you can simply omit the
-dto see the output as the command is run.
Add the initial superuser account:
    docker-compose run --rm -d api python manage.py createadmin
This will setup the default superuser
adminwith the passwordadmin.
Once all of this is done, you should be up and running. To see the site, go
to the dev machine IP at port 8000 (or port 80 to test through nginx).