Initial commit with the basics
This commit is contained in:
44
admin/documentation/run locally.txt
Normal file
44
admin/documentation/run locally.txt
Normal file
@@ -0,0 +1,44 @@
|
||||
# Go to root of application
|
||||
cd ~/path/to/directory/my_application/
|
||||
|
||||
# Create new application environment
|
||||
virtualenv environment
|
||||
|
||||
# Activate application environment
|
||||
source environment/bin/activate
|
||||
|
||||
# Install application requirements
|
||||
pip install -r admin/requirements.txt
|
||||
|
||||
# Start application
|
||||
uvicorn app.main:app --host 0.0.0.0 --port 5005 --reload
|
||||
|
||||
# View app
|
||||
http://localhost:5005
|
||||
|
||||
# Deactivate environment when done
|
||||
deactivate
|
||||
|
||||
|
||||
# Use git
|
||||
# Go to root of application
|
||||
cd ~/path/to/directory/my_application/
|
||||
|
||||
git init
|
||||
|
||||
git remote add origin https://scott_idem@bitbucket.org/oneskyit/one-sky-it-api.git
|
||||
git add .
|
||||
git commit -m 'Initial commit'
|
||||
|
||||
git push -u origin master
|
||||
git push -u origin development
|
||||
git push -u origin new-branch-name
|
||||
|
||||
# List branches
|
||||
git branch -a
|
||||
|
||||
# Create new branch
|
||||
git branch new-branch-name
|
||||
|
||||
# Switch branch
|
||||
git switch new-branch-name
|
||||
Reference in New Issue
Block a user