No project description provided
Project description
Magic CLI
The best server maker.
Steps:
-
pip install magic-cli (make sure the pip points to the correct python (3.6+))
-
cd into the directory you want the server to be in
// use the cli to create the app
-
magic create < app name >
-
cd < app name >
// now make the virtual env and pip install the requirements 5) python3 -m venv venv
-
source venv/bin/activate
-
pip install -r requirements.txt
// files needed to run 8) Create an .env file in the < app name > directory.
a) Use the ".example_env" as a template. Fill in the env variables for the services you will need to use.
b) The SERVICE and TASKS_TABLE_NAME are required for the app.
// add firestore
- add the firestore service account json to the < app name > and name it "my-service-account.json"
That should be it for the setup!
Time to run it!
To start a local server: magic start To test local server (while local server is running): magic test To deploy for the first time or any time you change the serverless yaml: magic deploy To deploy when you just edited the app code: magic deploy_again
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for magic_cli-0.1.21-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1660d069005526184760b645bdf478daa5ce065959b4b0d2d4137e92d0ec319a |
|
MD5 | 52ecd51a1eced109cde7be984f82bba5 |
|
BLAKE2b-256 | 159ac61a6a3073d5421216bd14b9920b17f2acc66f7a699fd6c1996c6113ad95 |