mirror of
https://github.com/usatiuk/writer.git
synced 2025-10-28 16:07:49 +01:00
add a launch config for backend
This commit is contained in:
16
.vscode/launch.json
vendored
Normal file
16
.vscode/launch.json
vendored
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
{
|
||||||
|
// Use IntelliSense to learn about possible attributes.
|
||||||
|
// Hover to view descriptions of existing attributes.
|
||||||
|
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
||||||
|
"version": "0.2.0",
|
||||||
|
"configurations": [
|
||||||
|
{
|
||||||
|
"name": "Backend",
|
||||||
|
"request": "launch",
|
||||||
|
"runtimeArgs": ["run-script", "ts-node-dev"],
|
||||||
|
"runtimeExecutable": "npm",
|
||||||
|
"skipFiles": ["<node_internals>/**"],
|
||||||
|
"type": "pwa-node"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
19
README.md
19
README.md
@@ -1,4 +1,5 @@
|
|||||||
# writer
|
# writer
|
||||||
|
|
||||||
A simple web/markdown-based note taking app
|
A simple web/markdown-based note taking app
|
||||||
|
|
||||||
You can take a look at the hosted version on heroku: https://ustk-writer.herokuapp.com
|
You can take a look at the hosted version on heroku: https://ustk-writer.herokuapp.com
|
||||||
@@ -21,7 +22,7 @@ only need to change the database connection settings)
|
|||||||
|
|
||||||
Open the workspace in a remote docker container using VSCode - everything should
|
Open the workspace in a remote docker container using VSCode - everything should
|
||||||
be set up for you. You just need to rename `ormconfig.example.json` to `ormconfig.json`
|
be set up for you. You just need to rename `ormconfig.example.json` to `ormconfig.json`
|
||||||
Also, you need to run database migrations with
|
Also, you need to **run database migrations** with
|
||||||
`npm run typeorm-dev -- migration:run`
|
`npm run typeorm-dev -- migration:run`
|
||||||
|
|
||||||
Then start with `npm run dev` and visit http://localhost:1234 (Parcel dev server
|
Then start with `npm run dev` and visit http://localhost:1234 (Parcel dev server
|
||||||
@@ -34,18 +35,18 @@ docker-compose example in `dockercomposeexample` folder
|
|||||||
|
|
||||||
### Config options (for docker container)
|
### Config options (for docker container)
|
||||||
|
|
||||||
* `PORT` - web port
|
- `PORT` - web port
|
||||||
|
|
||||||
* `TYPEORM_HOST` - mariadb hostname
|
- `TYPEORM_HOST` - mariadb hostname
|
||||||
|
|
||||||
* `TYPEORM_USERNAME` - mariadb username
|
- `TYPEORM_USERNAME` - mariadb username
|
||||||
|
|
||||||
* `TYPEORM_PASSWORD` - mariadb password
|
- `TYPEORM_PASSWORD` - mariadb password
|
||||||
|
|
||||||
* `TYPEORM_DATABASE` - mariadb database
|
- `TYPEORM_DATABASE` - mariadb database
|
||||||
|
|
||||||
* `TYPEORM_PORT` - mariadb port
|
- `TYPEORM_PORT` - mariadb port
|
||||||
|
|
||||||
* `JWT_SECRET` - JWT secret - set it to something random
|
- `JWT_SECRET` - JWT secret - set it to something random
|
||||||
|
|
||||||
* `HTTPS` (`"yes"`/`"no"`) - whether the server enforce HTTPS or not
|
- `HTTPS` (`"yes"`/`"no"`) - whether the server enforce HTTPS or not
|
||||||
|
|||||||
Reference in New Issue
Block a user