https://github.com/grootkng/clean-arch-js
https://github.com/grootkng/clean-arch-js
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/grootkng/clean-arch-js
- Owner: grootkng
- Created: 2022-04-05T19:50:05.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-11-09T05:31:16.000Z (over 3 years ago)
- Last Synced: 2025-03-09T04:51:10.070Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 49.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Clean Arch with Javascript
## Instalation and Usage
### Must have
1. Node.js v18
2. Docker
### Step-by-step without docker
1. Copy the content of `.env.example` and paste in a file called `.env`
2. Instal the dependencies: `npm install`
3. Run a Postgres database with the configs in the `.env.example`
4. Run the migrations: `db:migrate`
3. Then run the project: `npm run start`. Or with watch mode: `npm run start:dev`
### Step-by-step with docker
1. Copy the content of `.env.example` and paste in a file called `.env`
2. Run: `docker-compose up`
### URLs
* (GET and POST) localhost:8000/notes
* (GET) localhost:8000/notes?author=[AuthorNameHere]
* (GET) localhost:8000/notes/?id=[NoteIdHere]