Code Monkey home page Code Monkey logo

nfw-cli's People

Contributors

amauryd avatar baptiste-dmbn avatar dramixdw avatar glennhonore avatar remadex avatar snorkell avatar teaflex avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

nfw-cli's Issues

Ressource creation problems

WHen I try to create a ressource with the name tasks I have 2 issues :

  • The CLI don't ask anymore the name of my column after the updateDate or even if I go in the all process.

  • At the end of the creation of the ressource I have this problem

? Want to add more column ? No v Model created in :/home/gilles/www/tpkpm/src/api/models/task.model.ts v Validation generated in src/api/validations/task.validation.ts v Test generated in test/task.test.ts v Repository generated in src/api/repositories/task.repository.ts v Controller generated in src/api/controllers/task.controller.ts v Serializer generated in src/api/serializers/task.serializer.ts v Relations generated in src/api/enums/relations/task.relations.ts v Middleware generated in src/api/middlewares/task.middleware.ts v Route generated in src/api/routes/v1/task.route.ts v Proxy router file updated. v Files generating done. v Generating task done v Executed migration successfully i Generated in src/migration x Typedoc failed to generate : Command failed: typedoc --out ./docs --ignoreCompilerErrors /bin/sh: 1: typedoc: not found

nfw ee error

When i Launch nfw ee and i choose dev I receive this error :
{ Error: ENOENT: no such file or directory, open 'development.ENV' at Object.openSync (fs.js:439:3) at Object.readFileSync (fs.js:344:35) at Object.editENVFiles (/home/gilles/www/nfw-cli/utils/execShellCommands.js:404:39) at process._tickCallback (internal/process/next_tick.js:68:7) errno: -2, syscall: 'open', code: 'ENOENT', path: 'development.ENV' }

Error when launching nfw new tpkpm --yarn

When I launch this.
I receive this error :

`>v Cloning repository ...

Username for 'https://github.com': [email protected]
Password for 'https://[email protected]@github.com':
v Git repository cloned successfully ....
v Renamed directory successfully
v .git folder successfully deleted ...
v Project successfully set up ....
โ—œ Generating app ...x Failed to generate project : Command failed: cd tpkpm && mkdir -p ./dist/logs ./dist/migration/dump ./dist/uploads/documents/xs ./dist/uploads/documents/md ./dist/uploads/documents/xl && yarn add bcrypt && yarn global add typescript && yarn global add typeorm && yarn install && tsc
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
warning mysql > [email protected]: Custom ALPHABET bug fixed in v7.0.2
warning typedoc > @types/[email protected]: This is a stub types definition. handlebars provides its own type definitions, so you do not need this installed.
error An unexpected error occurred: "https://registry.yarnpkg.com/event-stream/-/event-stream-3.3.6.tgz: Request failed "404 Not Found"".

Generated successfully, Compiling TypeScript
โ—œ Generating app ...Compiled successfully
v Config file generated successfully

`

start database creation

WHen you use nfw start and that the settings are correct for the database, it should verify if it exists. If not then it should create-it automaticly.
Instead of showing an error.

ts-morph

We should consider using ts-morph to manipulate typescript files in future release instead of regexes ?

  • Edit model command
  • Remove relation command
    • Model
    • Serializer
    • Enum
  • Add relation command
    • Model
    • Serializer
    • Enum
  • Delete command
    • Delete files
    • Unroute
    • Edit from config

New command

  • Ask for container creation on new
    • if the user refuses , it checks if the connection to the database is possible and then do the migration
    • if the user accepts , create the container (With inquirer questions) and do the migration

Change nfw new command and create env command

When you create a new app,
there should be a question asking : Do you nedd a database , Y , N.
After that you should create by default the dev env file based on the actual --env flow.
We should also create a env command to gennerate the good files instaed of changing it by hand

Code naming convention

After reviewing the code , it should be better to change some naming conventions and code style as described here

Also :

  • Create a variable when the same function is used multiple times with same arguments
  • Don't forget to await when a function is async
  • Use the Log module to log and not console log , except for debug.
  • Change some file naming to camelCase

Route generation command

Create a command to generate routes without model

  • Ask authorization level for the route (or by parameters)

Github issues

When i try to do a nfw new it ask me for my credentials but I can't insert them.
It should detect if it works in ssh and if not go in https.
Finaly It should ask for credentials

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.