Giter Site home page Giter Site logo

amplication / amplication Goto Github PK

View Code? Open in Web Editor NEW
13.3K 13.3K 1.4K 361.63 MB

πŸ”₯πŸ”₯πŸ”₯ Open-source backend development platform. Build production-ready services without wasting time on repetitive coding.

Home Page: https://amplication.com

License: Other

JavaScript 0.23% Dockerfile 0.20% TypeScript 94.29% HTML 0.82% CSS 0.65% Shell 0.03% SCSS 3.72% Batchfile 0.01% PLpgSQL 0.06%
api code-generation graphql hacktoberfest javascript low-code nestjs nodejs prisma typescript web

amplication's Introduction

Instantly generate production-ready Node.js backend apps πŸš€

dashboard

Introduction

Amplication is a robust, open-source development platform designed to revolutionize the creation of scalable and secure Node.js applications. We eliminate repetitive coding tasks and deliver production-ready infrastructure code, meticulously tailored to your specifications and adhering to industry best practices.

Our user-friendly interface fosters seamless integration of APIs, data models, databases, authentication, and authorization. Built on a flexible, plugin-based architecture, Amplication allows effortless customization of the code and offers a diverse range of integrations.

With a strong focus on collaboration, Amplication streamlines team-oriented development, making it an ideal choice for groups of all sizes, from startups to large enterprises. Our platform enables you to concentrate on your business logic, while we handle the heavy lifting.

Experience the fastest way to develop Node.js applications with Amplication.

Features

apis Β  data-models

plugins Β  microservices

own-your-code Β  customize-code

Usage

To get started with Amplication, the hosted version of the product can be used. You can get started immediately at app.amplication.com. After the login page, you will be guided through creating your first service. The website provides an overview of the application, additional information on the product and guides can be found in the docs.

Tutorials

Development

Alternatively, instead of using the hosted version of the product, Amplication can be run locally for code generation purposes or contributions - if so, please refer to our contributing section.

Pre-requisites
To be able to start development on Amplication, make sure that you have the following prerequisites installed:

  • Node.js
  • Docker
  • Git
Running Amplication

Note It is also possible to start development with GitHub Codespaces, when navigating to < > Code, select Codespaces instead of Local. Click on either the +-sign or the Create codespace on master-button.

Amplication is using a monorepo architecture - powered by Nx Workspaces - where multiple applications and libraries exist in a single repository. To setup a local development environment the following steps can be followed:

BEFORE you run the following steps make sure:

  1. You have typescript installed locally on you machine npm install -g typescript

  2. You are using a supported node version (check engines node in the package.json)

  3. You are using a supported npm version (check engines npm in the package.json)

  4. You have docker installed and running on your machine

  5. Clone the repository and install dependencies:

git clone https://github.com/amplication/amplication.git && cd amplication && npm install
  1. Run the setup script, which takes care of installing dependencies, building packages, and setting up the workspace:
npm run setup:dev
  1. Option 1: Running the required infrastructure - view infrastructure component logs
npm run docker:dev
  1. Option 2: Running the required infrastructure - run the infrastructure components in background
npm run docker:dev -- -d
  1. Apply database migrations
npm run db:migrate:deploy
  1. To start developing, run one or more of the applications available under serve:[application] scripts of the package.json.
# running the server component
npm run serve:server

# running the client component
npm run serve:client

# running the data-service-generator component
npm run serve:dsg

# running the git-sync-manager component
npm run serve:git

# running the plugin-api component
npm run serve:plugins

Note In order to run the Amplication client properly, both the client and server need to be started by the npm run serve:[application] command, as well as an additional component for development on a specific component.

The development environment should now be set up. Additional information on the different application components can be found under packages/[application]/README.md file. Happy hacking! πŸ‘Ύ

Resources

  • Website overview of the product.
  • Docs for comprehensive documentation.
  • Blog for guides and technical comparisons.
  • Roadmap to see what features will be added in the future.
  • Discord for support and discussions with the community and the team.
  • GitHub for source code, project board, issues, and pull requests.
  • Twitter for the latest updates on the product and published blogs.
  • YouTube for guides and technical talks.

Contributing

Amplication is an open-source project. We are committed to a fully transparent development process and highly appreciate any contributions. Whether you are helping us fix bugs, proposing new features, improving our documentation or spreading the word - we would love to have you as a part of the Amplication community. Please refer to our contribution guidelines and code of conduct.

  • Bug Report: If you see an error message or encounter an issue while using Amplication, please create a bug report.

  • Feature Request: If you have an idea or if there is a capability that is missing and would make development easier and more robust, please submit a feature request.

  • Documentation Request: If you're reading the Amplication docs and feel like you're missing something, please submit a documentation request.

Not sure where to start? Join our discord and we will help you get started!

Contributors

License

A large part of this project is licensed under the Apache 2.0 license. The only exception are the components under the ee (enterprise edition) directory, these are licensed under the Amplication Enterprise Edition license.

amplication's People

Contributors

abrl91 avatar allcontributors[bot] avatar alonram avatar amplication-engineering avatar arielweinberger avatar barshimi avatar belkind27 avatar dependabot[bot] avatar eugenetseitlin avatar g-traub avatar galcegla avatar germanilia avatar gitstart avatar iddan avatar jainpawan21 avatar lalit8347 avatar levivannoort avatar lokeswaran-aj avatar meeroslava avatar morhag90 avatar mshidlov avatar muhsinkamil avatar mulygottlieb avatar ognjenjevremovic avatar overbit avatar renovate-bot avatar shaharblanksela avatar shurtu-gal avatar tupe12334 avatar yuval-hazaz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

amplication's Issues

open issues for discussion in next sessions

We should use this issue to track items for open discussion in any of the future sessions:

  • How to create API endpoints for actions that are needed in screens. Should we automatically create the API with all the requested features? should these API be editable in the APIs section? should we use the same roles from the page on the API?

REST API Connector and OpenAPI spec

I found this project with types for OpenAPI documents.
https://github.com/kogosoftwarellc/open-api/blob/master/packages/openapi-types/index.ts

Theoretically we could use these types to create and save the configurations for our REST API Connectors but there are few issues:

  1. GraphQL will not allow Union Types in the Input and many of the OpenAPI types are Union types.
  2. Our configuration includes several extra functional features like "context parameters", permissions and visibility per specific fields and more....

For the above reason, I suggest that we use our own types to create REST API Connectors and only in runtime or build time we will convert our types to OpenAPI schema.

@iddan, your thoughts pleases

Entities Page - Behaivour

  • The side panel should always stay open and visible.
  • When creating a new Entity Field, all the properties on the screen should show a default value (e.g. max length)
  • A text field should be available on the entity box to add new fields without using the side panel
    • the user clicks on the + sign
    • a textbox is shown on the entity box, while the side panel shows a "new field" state.
    • The user types in the field name and clicks on Enter (he can also use the side panel for full features)
    • The new field is created with default values
    • The focus remains on the textbox to allow the user to create more Fields
  • when the user types in a new entity name, the display name should be automatically created with spaces based on CamelCase format.
    The same for entities, including Plural Display Name.
  • the Name field should only be limited to a specific set of characters. no spaces, no dots, etc (TBD)

Use classes instead of json schema

@iddan
I think we should consider to use classes with validation attributes (like all other model classes) instead of using json schema for all json fields.

in the current scenario (entity field properties) where we are dealing with just simple fields the json schema works well. But looking ahead on the pages and other very complex structures that we use json for I think json schema wont be enough.

I assume that when we'll build the ui editor or any other block like Connector, we will anyway use classes to describe the object - so we may as well use the objects to validate the request and more.

what do you think?

"Name" Fields validation

Entities and Entity Fields have a Name and a Display Name.
The Display name is used for display purposes throughout the system. The Name field is used for code and reference purposes.
for example, when a developer wants to assign a value from the Last Name field to the First Name field he will use the Name property in the following way:
customer.FirstName = customer.LastName

We should add validation both on the server side and client side for the correct format.

1, Choose format to be used (no spaces, dots, and such). Is there any common format for such fields?
2. Implement this on the server side (decorators with regex on the model? in the service?both?)
3. Implement this on the client side

remove Is Persistent from the UI

The field IsPersistent determine whether the entity represents a table in the DB or just a DTO.
This is actually done using to different types of "entities" in the UI - Entity and Structure.

When the user creates "Entity" the field IsPersistent equals True
When the user creates "Structure" the field IsPersistent equals False

GraphQL naming conventions

We should revisit all mutations and queries in graphQL and rename then with the entity name first and then the actions.
Instead of
createEntityField or CreateOneEntityField
we should use
entityFieldCreate

Instead of
createOneEntityVersion
we should use
entityCreateVersion or entitySaveVersion

@iddan, I know that with graphQL it is usually recommended to use the action first, but i dont like it. What do you think?
See this post for more info
https://www.apollographql.com/blog/designing-graphql-mutations-e09de826ed97

Schema Validation

When saving entity fields, or blocks, or pages we need to save a list of properties in a JSON field in the DB.
We should validate the JSON schema before we save it to the DB.
for example:
EntityField.Properties is a JSON field that holds the special properties for each dataType.
When data type is "Single Line Text" the properties should only include "Max Length"
When data type is "Whole Number" the properties should include "Min Value" and "Max value".

In order to do that we can use a JSON schema validation package

https://github.com/tdegrunt/jsonschema
https://github.com/ajv-validator/ajv
https://github.com/ebdrup/json-schema-benchmark

for each datatype we should have an hard-coded schema and use it both on the client side and server for validation and presentation.

UI - Entities Page - Option Set

@LeeAmp
I created a new page in Figma called "Option Set" with an example of how the UI should looks like when creating a new option set.
Please merge the functionality into the main Figma page

Split ResourceBasedAuth Decorator

@iddan, as per out talk -
please split the decorator and create two seperate decorators. suggested names:

InjectContextValue Decorator
ContextAuthorize Decorator

DB migrations process and best practices

we need to set a process on how to use prisma migrations.
Too often we have conflicts and need to hack around it.
There are probably best practices that can help us.
We should also think of how to use it later down the road on production to update live DBs.

@iddan if you have any input please share

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.