ktor-generation's Introduction
ktor-generation's People
ktor-generation's Issues
Build Tool wrapper
Add build tool wrapper after project generation:
for Gradle:
gradle wrapper
for Maven:
mvn -N io.takari:maven:wrapper
DataBase Feature
Create demo project with db connection, explore how it works and implement this feature
DataBase option:
- H2
- Mysq
- Postgres
Abstraction
Some fields in each feature are equal.
Entity Feature
Implement Entity Feature
Web feature
Impkement static web constent feature
Generate package
When creating each custom file, need to insert the package
into file.
Package = $group.dirs
Maven 2
Added custom information into mavens fiiles
Fix bug with auto generatetion Application.kt file
Routing Feature
Think about "response" routing. Also implement functionality to pass the argument to the request.
Create action.
Create action for Core part: gradle build
Maven 1
Created logic to generate empty, default mavens files
Create project files tree file verification
After reading, tree should be checked that it is valid
Socket Feature
Parse file tree from web
Gradle common information
Create logic to write common code into gradle's file.
Empty Gralde project
Create logic to generate empty gradle project.
Pretty git and code
Make github page nice (code cov, readme, add project that cn be selected in issue, mb milestone)
CodeCover
Add codeCover to git
Verification
Create handler for all possible negative cases
Dependency
In generation gradle/maven files add all dependencies. After all features was implemented - remove from file unused dependencies
Detect Imports
Create logic to import necessary files.
Config file verification
- Enity with diff names
- Routing with diff names
- Cannot be
AUTOINCREMENT
withVARCHAR
Find config file
jar
should scan config file in which it located
Logging
Create logic to log logic in users folder
Handle all errors
When user entered the wrong information - there should be nice-error
Routing
Add Routing
feature
https://ktor.io/docs/routing-in-ktor.html
Think over the logic of copy tamplte code
Need to think over the logic and create carcass for copy template code and paste it in necessary place. This logic should use hash key
Create correct Jar with templates and resources
Detect implemen ot not feature.
---
global:
projectName: "qwdqw"
buildType: "Gradle"
group: "com.example"
version: "0.0.1-SNAPSHOT"
ktorVersion: "1.5.0"
kotlinVersion: "1.4.21"
port: "8080"
features:
routes: []
web:
name: ""
path: ""
template: "FB"
resources: []
database:
type: "MYSQL"
path: ""
port: "3306"
host: "localhost"
dbName: ""
username: "root"
password: ""
entities: []
socket:
name: ""
webPath: ""
answer: ""
closeWord: ""
closeMessage: ""
Project files tree
Sketch and create logic of parsing information about files tree. (in same yaml file or in another ?)
File-tree. Create child of child
Now, it allows to create only one child
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.