Giter VIP home page Giter VIP logo

create-project-struct's Introduction

create-project-struct

You no longer have to think about creating the structure of your application yourself!

About

This is a cli tool will create the base dirs and files of your app for you. The base structure is taken from this repository.

How it works?

You must have Golang & Make installed to run the build. Clone the repository on your locale machine, open a terminal in the current dir and run the go mod tidy command. Then in a terminal with the same dir, run the command sudo make exec. Once finished, you can use the program by calling it in the terminal with the command cps.

Launch parameters

It's very simple! To create a project in the current directory, simply call cps ., and to create project in a new directory, simply write what you want your project to be called. For example cps my-app.

What does this program?

  1. Basic structure taken from the standards;
  2. Layout of the main file;
  3. File go.mod with project name;
  4. Makefile with parameters:
    1. build: builds the application;
    2. run: start the app in dev mode;
    3. test: rub all tests;
    4. lint: checks your project for design errors;
  5. Creates a local repository;
  6. Create a configuration file for golangci-lint;

What is expected next?

Expected in upcoming updates:

  1. Building the project in PKGBUILD;
  2. Add some flags to select the type of project, some values (eg port for the server) in the terminal;

Conclusion

If you have any suggestions for changed or improving the current project or would like to help | participate, you can contact me at:

  1. [email protected]
  2. t.me/blackmarllbor0

If you liked the project or found it useful, give it a star! See you soon!

create-project-struct's People

Contributors

blackmarllbor0 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

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.