mirror of
				https://github.com/DarkflameUniverse/NexusDashboard.git
				synced 2025-11-04 06:01:53 +00:00 
			
		
		
		
	
			
				
					
						
					
					ab25db182d209c98fd5f63f799024ce63e606250
				
			
			
		
	Nexus Dashboard
This is a WIP: For Advanced Users
Deployment
Docker
docker run -d \
   -e APP_SECRET_KEY='<secret_key>' \
   -e APP_DATABASE_URI='mysql+pymysql://<username>:<password>@<host>:<port>/<database>' \
   # you can include other optional Environment Variables from below like this
   -e REQUIRE_PLAY_KEY=True
   -p 8000:8000/tcp
   -v /path/to/unpacked/client:/app/luclient:rw \
   -v /path/to/cachedir:/app/cache:rw \ # optional for persistent cache for conversions
   aronwk/nexus-dashboard:latest
- /app/luclient must be mapped to the location of an unpacked client
- you only need 
res/andlocale/from the client, but dropping the whole cleint in there won't hurt 
 - you only need 
 - Use 
fdb_to_sqlite.pyin lcdr's utilities onres/cdclient.fdbin the unpacked client to convert the client database tocdclient.sqlite- Put teh resulting 
cdclient.sqlitein the res folder:res/cdclient.sqlite 
 - Put teh resulting 
 - unzip 
res/brickdb.zipin-place- Docker will do this for you
 - you should have new folders and files in the following places:
res/Assemblies/../..with a bunch of sub foldersres/Primitives/../..with a bunch of sub foldersres/info.xmlres/Materials.xml
 
 
Environmental Variables
- Required:
- APP_SECRET_KEY (Must be provided)
 - APP_DATABASE_URI (Must be provided)
 
 - Optional
- USER_ENABLE_REGISTER (Default: True)
 - USER_ENABLE_EMAIL (Default: True, Needs Mail to be configured)
 - USER_ENABLE_CONFIRM_EMAIL (Default: True)
 - USER_ENABLE_INVITE_USER (Default: False)
 - USER_REQUIRE_INVITATION (Default: False)
 - REQUIRE_PLAY_KEY (Default: True)
 - MAIL_SERVER (Default: smtp.gmail.com)
 - MAIL_PORT (Default: 587)
 - MAIL_USE_SSL (Default: False)
 - MAIL_USE_TLS (Default: True)
 - MAIL_USERNAME (Default: None)
 - MAIL_PASSWORD (Default: None)
 - USER_EMAIL_SENDER_NAME (Default: None)
 - USER_EMAIL_SENDER_EMAIL (Default: None)
 
 
Manual
Don't, use Docker /s
TODO: Make manual deployment easier to configure
Development
Please use Editor Config
flask runto run local dev server
					Languages
				
				
								
								
									Python
								
								59.5%
							
						
							
								
								
									Jinja
								
								35.7%
							
						
							
								
								
									HTML
								
								2.8%
							
						
							
								
								
									JavaScript
								
								0.9%
							
						
							
								
								
									SCSS
								
								0.5%
							
						
							
								
								
									Other
								
								0.5%
							
						
					