ts-rest-api-playground_server
Description
This is a boilerplate REST API built from scratch in TypeScript / Express.js / Node.js to perform generic CRUD operations with generic items. It follows HATEOAS best practices and includes ROUTE VALIDATION using json schemas with express-json-validator-middleware.
Technologies
- TypeScript, Express.js, Node.js
- Docker Containers
- Postgres Relational Database
- TypeORM as Database Manager Client
- More tech...
Prerequisies
You will need to install in your machine:
- Node 16
- Docker (with Hyper-V enabled)
- Docker-compose
- Install mkcert globally
Development Server
After installing the prerequisites and making sure the Docker service is running in your local machine:
- Run
npm install
- Once is complete, run
npm start
and the app will compile, build the docker image and launch the docker containers for development purposes
Next Steps
- Auth and Route Guards (Using PassportJS that allows Social Providers, jwt, ... and 100+ strategies)
- Deploy with Vercel / Continuous Integration (CI) with Github Actions
- Security enhancements
- Code improvements following Best Practices
- Tests
Author
Alexandre Gimenez