Git Product home page Git Product logo

realworld-express-prisma's Introduction

RealWorld Example App

Typescript + Express + Prisma codebase containing real world examples (CRUD, auth, advanced patterns, etc) that adheres to the RealWorld spec and API.

This codebase was created to demonstrate a backend built with Typescript + Express + Prisma including CRUD operations, authentication, routing, pagination, and more.

We've gone to great lengths to adhere to the Typescript community styleguides & best practices.

For more information on how to this works with other frontends/backends, head over to the RealWorld repo.

How it works

The project is build using TypeScript for language, Express for routing and server framework and Prisma as an ORM.

The project uses PostgreSQL for the database.

For unit testing it uses the Jest framework since it is what is promoted by prisma team to mock testing function that change the database.

Getting started

To run this project you should have node/npm installed.

Run npm install to install the dependencies.

Create a development environment file .env.development inside the root folder with the following attributes:

DATABASE_URL=file:./dev.db
JWT_SECRET=theSecretForCreatingTheJWT
NODE_ENV=development
  • To update the database in development mode use npm run migrate:develop
  • To run the development version npm run develop.
  • To test the application npm test.
  • To build a production version npm run build.
  • To run the production build npm run start.

realworld-express-prisma's People

Contributors

seuronao avatar ericsimons avatar geromegrignon avatar alonski avatar esakkiraj avatar optikfluffel avatar likui628 avatar segmentationfaulter avatar

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.