Giter Site home page Giter Site logo

makepath / makestack Goto Github PK

View Code? Open in Web Editor NEW
11.0 11.0 2.0 1.29 MB

Shell 24.07% Makefile 1.43% Python 30.95% Dockerfile 3.91% HTML 2.70% CSS 0.35% JavaScript 1.13% HCL 2.20% Batchfile 0.47% TypeScript 17.02% Starlark 1.13% Java 10.19% CMake 0.16% C++ 4.28%

makestack's People

Contributors

brendancol avatar giancastro avatar jam-lock avatar tcmetzger avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

makestack's Issues

Refactor construction of file paths in blocks.py

I got the following error:

(base) ➜  ~ conda activate test_project_999
(test_project_999) ➜  ~ pip install makestack
Collecting makestack
  Using cached makestack-0.1-py3-none-any.whl
Collecting qprompt==0.16.3
  Using cached qprompt-0.16.3-py3-none-any.whl
Collecting click-plugins>=1.1.1
  Using cached click_plugins-1.1.1-py2.py3-none-any.whl (7.5 kB)
Collecting click>=8.1.3
  Using cached click-8.1.3-py3-none-any.whl (96 kB)
Collecting iterfzf
  Using cached iterfzf-0.5.0.20.0-py2.py3-none-macosx_10_10_intel.macosx_10_10_x86_64.macosx_10_11_intel.macosx_10_11_x86_64.macosx_10_12_intel.macosx_10_12_x86_64.whl (1.1 MB)
Requirement already satisfied: setuptools in ./miniconda3/envs/test_project_999/lib/python3.10/site-packages (from iterfzf->qprompt==0.16.3->makestack) (65.6.3)
Installing collected packages: iterfzf, click, qprompt, click-plugins, makestack
Successfully installed click-8.1.3 click-plugins-1.1.1 iterfzf-0.5.0.20.0 makestack-0.1 qprompt-0.16.3
(test_project_999) ➜  ~ which makestack
/Users/brendan/miniconda3/envs/test_project_999/bin/makestack
(test_project_999) ➜  ~ makestack startproject --name test_project_999 --directory .
(test_project_999) ➜  ~ rm -rf test_project_999
(test_project_999) ➜  ~ makestack startproject --name test_project_999 --directory .
[!] Creating the project folder. DONE.
-----------------------------------------------------------------
[?] Add Django to the environment?: y
[?] Add GeoServer to the environment?: n
[?] Add Mapshader to the environment?: n
[?] Add Nginx to the environment?: y
[?] Add Redis to the environment?: y
[?] Add Celery to the environment?: y
[?] Add React to the environment?: y
[?] Add Terraform to the environment?: y
[?] Add Sphinx to the environment?: n
-----------------------------------------------------------------
[INFO] Starting to set up the project environment.
[!] Setting up General Files... Traceback (most recent call last):
  File "/Users/brendan/miniconda3/envs/test_project_999/bin/makestack", line 8, in <module>
    sys.exit(main())
  File "/Users/brendan/miniconda3/envs/test_project_999/lib/python3.10/site-packages/click/core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
  File "/Users/brendan/miniconda3/envs/test_project_999/lib/python3.10/site-packages/click/core.py", line 1055, in main
    rv = self.invoke(ctx)
  File "/Users/brendan/miniconda3/envs/test_project_999/lib/python3.10/site-packages/click/core.py", line 1657, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/Users/brendan/miniconda3/envs/test_project_999/lib/python3.10/site-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/Users/brendan/miniconda3/envs/test_project_999/lib/python3.10/site-packages/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
  File "/Users/brendan/miniconda3/envs/test_project_999/lib/python3.10/site-packages/makestack/startproject.py", line 63, in startproject
    general.set_up()
  File "/Users/brendan/miniconda3/envs/test_project_999/lib/python3.10/site-packages/makestack/blocks.py", line 18, in set_up
    qprompt.status(f"Setting up {self.name}...", self._set_up)
  File "/Users/brendan/miniconda3/envs/test_project_999/lib/python3.10/site-packages/qprompt.py", line 636, in status
    return decor(func)(*fargs, **fkrgs)
  File "/Users/brendan/miniconda3/envs/test_project_999/lib/python3.10/site-packages/qprompt.py", line 623, in wrapper
    result = func(*args, **krgs)
  File "/Users/brendan/miniconda3/envs/test_project_999/lib/python3.10/site-packages/makestack/blocks.py", line 81, in _set_up
    self._copy_base_folder()
  File "/Users/brendan/miniconda3/envs/test_project_999/lib/python3.10/site-packages/makestack/blocks.py", line 59, in _copy_base_folder
    shutil.copytree(source, destination, dirs_exist_ok=True)
  File "/Users/brendan/miniconda3/envs/test_project_999/lib/python3.10/shutil.py", line 556, in copytree
    with os.scandir(src) as itr:
FileNotFoundError: [Errno 2] No such file or directory: 'makestack/data/general'

Compose the final Makefile based on selected components

Certain makestack components need different make commands.

Also, if a component is not selected, we want to omit those make commands.

I think each component should have a Makefile.txt which list its commands and then they are collated during startproject

Create FAQ

We should create a makestack FAQ which has a few useful questions for each component in the stack.

A few ideas to us started:

  • How do I get the react app to refresh after I update the JS code?
  • How do I add layers to GeoServer?
  • How can I see what is currently stored in the Redis Cache?
  • How can I add a layer to PostGIS?
  • How can I implement a custom Django view which uses PostGIS data?

Hot reload for Frontend

Is there currently a built in way within makestack for hotreload of the react app while doing development?

If not, lets add it!

`create-makestack-app` cli tool which create

I want to install makestack in my base python environment (pip install makestack) and then be able to run:

makestack new <name_of_project>

The command would create a new project directory with the initial foundation for my application.

So basically to start a new application, the flow would be:

makestack new myapp
cd myapp
make build
make start

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.