- Docker
- Docker Compose
- Node 15
- Typescript
- Prisma
- Express
- Docker
- Clone the Repo;
- Install development dependencies:
$ npm install
- Run Docker Development mode:
$ docker-compose up -d
- Enjoy!
- Clone the Repo;
- Install development dependencies:
$ npm install
- Check the env vars (in the envs folder).
- Create a .env file in the root of the project.
- Execute yarn prisma db push to create the database.
- Start development server:
$ npm run dev
- Enjoy!
Run this commands from the project folder with npm run "script-name"
.
dev
: runs project in development modebuild
: builds all .ts files from./src
folder to./build
lint
: lints source code usingeslint
update
: easily check for updates and update all dependenciestest
: run teststest:watch
: run tests in watch modetest:report
: run testsa and adds report file
This starter is already configured to allow you to extend typings of external packages. The logic behind it is based on this official template. To augment a module, just create a folder with the same name as the module you are augmenting and add an index.d.ts in it. Here you can find a real world example.
Warning: This starter uses new V8 inspect protocol so you have to use at least Node.js 7.7.4 if you want to use the included debugger settings.
- start dev server with
npm run dev
- now you have two ways:
- use the provided debug URL in Chrome
- use VS Code included (inside .vscode folder)
attach
config (best debugging experience)
This stater uses Node.js best practices and creates dummy user to start node process, instead of using root user.
# Go to the root of your repo created from this starter
# Build your docker image
docker build -t api-hr.
# run your docker container
docker run -p 3000:3000 api-hr