Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/slice312/AWS_CICD_monolith-book-app

Dockerizing: node server + client side with common js
https://github.com/slice312/AWS_CICD_monolith-book-app

aws aws-ec2 cicd docker docker-compose ec2 express feature-sliced javascript node vanilla-js web-components webpack webpack-multi-page

Last synced: 2 months ago
JSON representation

Dockerizing: node server + client side with common js

Awesome Lists containing this project

README

        

Book App

## About
- A study project to learn how to work with server API (CRUD operations),
multipages site, native web components
- The structure of the client application was developed by [Feature-Sliced Design methodology](https://feature-sliced.design)

## Features
- ES6 modules, ES2022 classes
- Web Components
- Feature-Sliced Design
- Custom webpack setup
- ESLint

## How to run
### Run server API and dev server for client
Install all dependencies for server and client side
```sh
npm run install-dependencies
```
Start API server
```sh
npm run api-server
```
Start dev server for client
```sh
npm run client
```

This script run `webpack-dev-server` and auto open browser with `https://localhost:5007`.
If no browser is opened, you must manually open this URL in the browser.
Port `5007` specified in `webpack.config.json` in devConfig.

## Reset state
For run api server with reset data
```js
cd server
npm run restart
```

#### Default User
```
login: admin
pass: 1234
```