Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kosyachniy/test
https://github.com/kosyachniy/test
Last synced: about 9 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/kosyachniy/test
- Owner: kosyachniy
- License: mit
- Created: 2018-08-05T20:00:13.000Z (over 6 years ago)
- Default Branch: test1
- Last Pushed: 2024-07-19T13:53:37.000Z (4 months ago)
- Last Synced: 2024-07-19T19:15:27.002Z (4 months ago)
- Language: Python
- Size: 2.52 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Template full stack application
[![Build Status](https://app.travis-ci.com/kosyachniy/test.svg?token=Y2sWDT2XzsY16XJ141Qp&branch=test1)](https://app.travis-ci.com/kosyachniy/test)## Description
Web-app on JS with Python JSON-RPC APIForm | Side | Stack | Language | Path
---|---|---|---|---
API | Back-end | FastAPI | Python | ``` api/ ```
Web app | Front-end | React | JavaScript | ``` web/ ```
Telegram bot | Back-end | AIOGram | Python | ``` tg/ ```
iOS | Front-end | React Native | JavaScript | planned
Android | Front-end | React Native | JavaScript | planned### Stack
Side
Logo
Technology
Version
DevOps
20.10.8
1.19.6
Back-end
3.9.1
0.63.0
4.4.2
Front-end
node 15.5.1
16.14.0
4.0.5
4.1.3
5
## Install & Use with Docker
### Development
1. Customize file ` docker/.env ` & ` Makefile `2. Run
```
make run
```3. Open
Go to ` http://localhost/ `
### Production (dedicated server)
1. Customize file ` docker/.env ` & ` Makefile `2. Create encryption keys
```
cd docker/
chmod 777 cert.sh
./cert.sh
```3. Run Docker Compose
```
docker-compose -f docker-compose.alone.yml -p web up --build
```
(your project name instead of ` web `)4. Open
Go to ` https://web.kosyachniy.com/ ` (your link)
### Production (with multiple projects)
1. Customize files ` docker/.env ` & ` Makefile `2. Run Docker Compose
```
cd docker/
docker-compose -f docker-compose.prod.yml -p web up --build
```
(your project name instead of ` web `)3. Set up NGINX using [docker/server/nginx.server.conf](docker/server/nginx.server.conf) (if not done)
More: [SERVER.md](SERVER.md)
4. Open
Go to ` https://web.kosyachniy.com/ ` (your link)
## Install & Use without Docker
### Back-end
1. Change folder
```
cd api/
```2. Customize file ` sets.json `
3. Virtual environment
```
python3 -m venv env
env/bin/pip install -r requirements.txt
```4. Run
```
env/bin/uvicorn app:app --host 0.0.0.0 --port 5000 --proxy-headers --reload
```### Front-end
1. Change folder
```
cd web/
```2. Customize file ` src/sets.json `
3. Virtual environment
```
npm install
```4. Run
#### Development
```
npm start
```#### Production
```
npm run build
serve -s build -p 3000
```