PetrNikolas / Niklick
Licence: mit
Rails Versioned API solution template for hipsters! (Ruby, Ruby on Rails, REST API, GraphQL, Docker, RSpec, Devise, Postgress DB)
Stars: ✭ 39
Programming Languages
ruby
36898 projects - #4 most used programming language
Labels
Projects that are alternatives of or similar to Niklick
Graphjin
GraphJin - Build APIs in 5 minutes with GraphQL. An instant GraphQL to SQL compiler.
Stars: ✭ 1,264 (+3141.03%)
Mutual labels: graphql, database, postgresql, rails, ruby-on-rails
Graphql Starter
💥 Monorepo template (seed project) pre-configured with GraphQL API, PostgreSQL, React, Relay, and Material UI.
Stars: ✭ 3,377 (+8558.97%)
Mutual labels: graphql, postgresql, postgres, starter-kit, boilerplate
Fullstack Apollo Express Postgresql Boilerplate
💥 A sophisticated GraphQL with Apollo, Express and PostgreSQL boilerplate project.
Stars: ✭ 1,079 (+2666.67%)
Mutual labels: postgresql, postgres, postgresql-database, starter-kit, boilerplate
Wertik Js
💪 A library that powers your app with GraphQL + Rest API
Stars: ✭ 56 (+43.59%)
Mutual labels: graphql, database, starter-kit, boilerplate
Activerecord Clean Db Structure
Automatic cleanup for the Rails db/structure.sql file (ActiveRecord/PostgreSQL)
Stars: ✭ 101 (+158.97%)
Mutual labels: database, postgresql, postgres, rails
Next Js Blog Boilerplate
🚀 Nextjs Blog Boilerplate is starter code for your blog based on Next framework. ⚡️ Made with Nextjs, TypeScript, ESLint, Prettier, PostCSS, Tailwind CSS.
Stars: ✭ 134 (+243.59%)
Mutual labels: starter-kit, starter, starter-template, boilerplate
Meteor Apollo Starter Kit
Meteor, Apollo, React, PWA, Styled-Components boilerplate
Stars: ✭ 91 (+133.33%)
Mutual labels: graphql, starter-kit, starter-template, boilerplate
Subzero Starter Kit
Starter Kit and tooling for authoring GraphQL/REST API backends with subZero
Stars: ✭ 136 (+248.72%)
Mutual labels: graphql, postgresql, starter-kit, boilerplate
Hartija Css Print Framework
Universal CSS for web printing
Stars: ✭ 509 (+1205.13%)
Mutual labels: starter-kit, starter, starter-template, boilerplate
Postgrest Starter Kit
Starter Kit and tooling for authoring REST API backends with PostgREST
Stars: ✭ 657 (+1584.62%)
Mutual labels: postgresql, starter-kit, boilerplate
Rein
Database constraints made easy for ActiveRecord.
Stars: ✭ 657 (+1584.62%)
Mutual labels: database, postgres, rails
Database rewinder
minimalist's tiny and ultra-fast database cleaner
Stars: ✭ 685 (+1656.41%)
Mutual labels: database, postgresql, rails
Pgmetrics
Collect and display information and stats from a running PostgreSQL server
Stars: ✭ 612 (+1469.23%)
Mutual labels: database, postgresql, postgres
Redux Webpack Es6 Boilerplate
A starter project for modern React apps with Redux
Stars: ✭ 566 (+1351.28%)
Mutual labels: starter-kit, starter-template, boilerplate
Blog
Everything about database,business.(Most for PostgreSQL).
Stars: ✭ 6,330 (+16130.77%)
Mutual labels: database, postgresql, postgres
Citus
Distributed PostgreSQL as an extension
Stars: ✭ 5,580 (+14207.69%)
Mutual labels: database, postgresql, postgres
Laravel Boilerplate
Laravel Boilerplate / Starter Kit with Gentelella Admin Theme
Stars: ✭ 704 (+1705.13%)
Mutual labels: starter-kit, starter, boilerplate
Zero downtime migrations
Zero downtime migrations with ActiveRecord 3+ and PostgreSQL
Stars: ✭ 513 (+1215.38%)
Mutual labels: database, postgres, rails
Metabase
The simplest, fastest way to get business intelligence and analytics to everyone in your company 😋
Stars: ✭ 26,803 (+68625.64%)
Mutual labels: database, postgresql, postgres
Niklick
Rails Versioned API solution template for hipsters!
- Version 3.1.0
Table of Contents
- Prerequisites
- Project Setup
- Development
- GraphQL API playground
- Tools
- Pry initializer
- Traceroute
- GraphQL Preload gem
- Test API with Postman
Prerequisites
Project Setup
- For production, you need to replace the asterisk with the URL of your client-side application in ./config/initializers/cors.rb file.
- Clone or download this repo
- Run
bundle install
- Run
rake db:create
- Run
bin/rails db:migrate RAILS_ENV=development
- Run
bin/rails db:seed RAILS_ENV=development
- Run
foreman start -f Procfile.dev
- Visit --> http://localhost:5000/. That's it!.
GraphQL API playground
- Open http://localhost:5000/graphiql and play with GraphQL.
Tools
- Run
rubocop
for Ruby lint. - Run
rubocop -a
for fixed some issues automatically. - Run
reek .
for analyzing code. - Run
brakeman
for static analysis and for security vulnerabilities. - Run
rails_best_practices .
in root app directory. Helps to find unused methods, missing indexes into database tables and many other things.
Annotate (aka AnnotateModels) usage
To annotate all your models, tests, fixtures, and factories:
cd /path/to/app
annotate
To annotate just your models, tests, and factories:
annotate --exclude fixtures
To annotate just your models:
annotate --exclude tests,fixtures,factories,serializers
To annotate routes.rb:
annotate --routes
To remove model/test/fixture/factory/serializer annotations:
annotate --delete
To remove routes.rb annotations:
annotate --routes --delete
To automatically annotate every time you run db:migrate, either run rails g annotate:install or add Annotate.load_tasks to your Rakefile
. See the configuration in Rails section for more info.
Gitlab CI
- You need configure
.gitlab-ci.yml
file with your Heroku credentials.
Travis CI
- You need configure
.travis.yml
file with your Travis and Heroku credentials.
Pry initializer
Avoid repeating yourself, use pry-rails instead of copying the initializer to every rails project.
- Run
rails console
and in Rails console: - For showing models -->
show-models
. - For showing routes -->
show-routes
.
Traceroute
- Run
rake traceroute
.
GraphQL Preload gem
Test API with Postman
- You can find some examples here.
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].