Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes for v2 #334

Open
danielfsousa opened this issue Sep 13, 2020 · 8 comments
Open

Changes for v2 #334

danielfsousa opened this issue Sep 13, 2020 · 8 comments
Assignees

Comments

@danielfsousa
Copy link
Owner

danielfsousa commented Sep 13, 2020

I am planning on doing a big refactoring on this repo, since the last update was 3 years ago.

  • Rename express-rest-es2017-boilerplate to express-rest-boilerplate
  • Use postgres as database (Postgres is a more reliable database and better suited for general purpose use)
  • Use Objection or Sequelize as ORM
  • Rafactor RBAC middleware
  • Use npm instead of yarn
  • Change folder structure
  • Replace apidoc with OpenAPI spec
  • Use pino for logging
  • Create a tutorial for deploying to kubernetes or a serverless platform
  • Remove semicolons =D
  • Remove Bluebird
  • Refactor unit and integration tests
  • Replace mocha, chai, sinon and nyc with jest
  • Add prettier
  • Update eslint-config
  • Update node to 12+
  • Update dependencies
  • Improve README
  • Remove unnecessary dependencies
  • Simple type checking in vscode without typescript (I will probably create another boilerplate for typescript + fastify)
@rayWille
Copy link

Hey Daniel
Thats great to see that you are updating this repo
I have learned a lot of things from this repo and have used in many projects
Thanks for sharing this repo

@danielfsousa
Copy link
Owner Author

Hey Daniel
Thats great to see that you are updating this repo
I have learned a lot of things from this repo and have used in many projects
Thanks for sharing this repo

Hey @rayWille, thanks for the feedback!

It was a great experience creating this repo, I've learned a lot from it and I got my first programming job because of it.

I'm so glad to know that it was also useful for you and others.

@Usama-Tahir
Copy link

Hi @danielfsousa, first of all, congrats on such a wonderful project. We are 2,3 people planning to use this repository for one of our projects. We want to use MySQL instead of MongoDB, Sequalize, and Swagger. As you are going to update this repository to V2, we can help you with that. If you want to provide some guidelines or suggestions about the code structure or folder structure, you can and we will open a PR incorporating those changes. You can review the PR and merge it if fulfills all checks.
Thanks

@danielfsousa
Copy link
Owner Author

@Usama-Tahir Cool! Thank you for your interest in this project. I'm busy this week, but I will create the issues with a detailed description later this month.

@jonassunandar
Copy link

Hi Daniel
I learnt a lot by looking at this repo.
Thank you so much.
I am looking forward to seeing V2 of the repo.

@alanbosco
Copy link

Maybe can we get a option to choose mongo or postgress? make a cli? ><

@mfachmirizal
Copy link

mfachmirizal commented Nov 15, 2020

waiting forward to this update ~

@danielfsousa
Copy link
Owner Author

Maybe can we get a option to choose mongo or postgress? make a cli? ><

We could make it simpler and have both postgres and mongo repositories, since javascript doesn't have interfaces we could use duck typing and choose the repository via an environment variable.

Having options to choose from a CLI would be great too. I've created a CLI to bootstrap this project: https://github.com/danielfsousa/npm-templates, we can implement a way of bootstrapping the template based on the variables you choose.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants