Git Product home page Git Product logo

Comments (1)

dosubot avatar dosubot commented on July 3, 2024 3

🤖

Hello @shenqidebaozi,

I'm here to assist you with your question about creating a Kratos project. Here's a step-by-step guide on how to do it:

  1. Install the kratos tool:
go get -u github.com/bilibili/kratos/tool/kratos
  1. Navigate to the src directory in your GOPATH:
cd $GOPATH/src
  1. Create a new project:
kratos new kratos-demo
  1. If you want to specify the owner and path, use the -o and -d options respectively:
kratos new kratos-demo -o YourName -d YourPath
  1. To generate example code for grpc and bm defined by protobuf, add the --proto option:
kratos new kratos-demo -o YourName -d YourPath --proto
  1. Navigate to the cmd directory in your project:
cd kratos-demo/cmd
  1. Build and run your project:
go build
./cmd -conf ../configs
  1. Open your browser and visit: http://localhost:8000/kratos-demo/start. You should see the output Golang 大法好 !!!.

Please note that you need to have Go installed on your system (version 1.12 or higher) and the GO111MODULE environment variable set to on. You also need to have the Protobuf Compiler, Go Protobuf Generator, and Swagger Docs installed.

For more detailed information, you can refer to the Kratos Tools and Kratos Getting Started documentation.

I hope this helps! If you have any more questions, feel free to ask.

Best,
Dosu

Sources


This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.

Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.

If you want to continue the conversation, start your reply with @dosu-bot.

from kratos.

Related Issues (20)

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.