Vanderscycle / next.js-nest.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Next.js Nest.js

Fullstack template to learn React

Todo

  • Simple rest api
  • postgresDB
  • add testing (backend)
  • add cypress testing (frontend)
  • learn more about next.js/react structure
  • infrastructure (k8s)
  • nestjs password are stored unencrypted. hash and secure them (bcrypt.js?)

Backend synopsis

Init the app from the cli,

References

Frontend

Backend

Issues

    // !! WARN !!
    // Dangerously allow production builds to successfully complete even if
    ignoreBuildErrors: true,
  },```

### Backend
* [Nest.js](https://docs.nestjs.com/)
* [Fastify](https://www.fastify.io/docs/latest/)
### Issues
* connecting the db

// require('dotenv').config(); // https://stackoverflow.com/questions/62287709/environment-variable-with-dotenv-and-typescript import * as dotenv from 'dotenv'; dotenv.config({ path: __dirname + '/.env' });

* Configuring env [management](https://docs.nestjs.com/techniques/configuration#getting-started) where I wanted to use NestJs own dotenv config `@nestjs/config` and this [tutorial](https://betterprogramming.pub/nest-js-project-with-typeorm-and-postgres-ce6b5afac3be)
* the start-db.sh should be replaced by a more versatile
* swagger apipropreties nott working
* esling/prettier rules
* learning about import inside [@modules](hhttps://github.com/nestjs/jwt#async-options)
* testing service/controllers in nestjs

About

License:MIT License


Languages

Language:JavaScript 54.8%Language:TypeScript 33.1%Language:Starlark 5.3%Language:CSS 3.4%Language:Dockerfile 2.0%Language:Shell 0.9%Language:HTML 0.3%Language:Makefile 0.2%