Giter Site home page Giter Site logo

tumex-svc-backcms-gqlfst-1's Introduction

Portfolio logo

General info

Hi ๐Ÿ‘‹! This is my main CMS data source. Well... it is not an usual CMS using WordPress, or other, but a from scratch custom one. Although, it isn't that of a big deal, is just a small preference...

Along that, my objective was to learn more about apollo, prisma and graphql. Hope you like it ๐Ÿ˜„!


Technologies

Project is created with:

  • Apollo the graphql server: v3.6.7
  • Prisma the Node.js and TypeScript ORM: v3.12.0
  • Express the back-end server framework: v4.18.1
  • Typescript magic: v4.6.4
  • type-graphql typescript interface: v1.1.1
  • For other secondary libs/fmwk, give a look into the package.json file

Setup

Note: Node version >= 14.x must be installed in your local environment Recomended: yarn, but you may use npm if you want

After downloading/cloning the repository and assuring yourself you are allowed to copy this repo...

  • Before running...

    ... add at least a .env file with the following variables (optional but recomended)

  PORT=... (e.g.: ``4000``)
  HOST=... (e.g.: ```localhost``)
  ROOT_PATH=... (e.g.: ``/``)
  DB_URL=... (You must use MongoDB, e.g.: ```mongodb+srv://user:<pass>@localhost:5000/mydb```)

  CORS=... (optional, e.g.: ``*``)
  HTTP_CATS_URL=... (optional, e.g.: ```https://http.cat/``)
  • ...Development
 cd ./tumex-svc-backcms-gqlfst-1
 yarn dev:all 
  • ...Production
 cd ./tumex-svc-backcms-gqlfst-1
 yarn build:all && yarn start
  • Access: Voila, now, you're ready to access it via localhost:4000 (unless .env you defined a diferent value for PORT on your .env)

Testing

Still not implemented...


Credits

Special thanks to contributors/teams:

  • at NodeJS's for an amazing runtime env
  • folks at typescript for the magic type help tool
  • Apollo's team for this amazing graphql server tool
  • express people for this tool, my backend bff
  • at Prisma's for such an astonishing ORM
  • and all the teams/contributors on other packages used here

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.