https://github.com/josethz00/eletronicx_fullstack
Repo with a fullstack test, the backend uses a JSON Rest API with Flask and PostgreSQL, and the frontend uses NextJS and Typescript
https://github.com/josethz00/eletronicx_fullstack
flask nextjs postgresql python typescript
Last synced: 3 months ago
JSON representation
Repo with a fullstack test, the backend uses a JSON Rest API with Flask and PostgreSQL, and the frontend uses NextJS and Typescript
- Host: GitHub
- URL: https://github.com/josethz00/eletronicx_fullstack
- Owner: josethz00
- Created: 2021-02-26T19:08:34.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-03-03T14:26:44.000Z (over 5 years ago)
- Last Synced: 2025-01-15T11:48:37.579Z (over 1 year ago)
- Topics: flask, nextjs, postgresql, python, typescript
- Language: Python
- Homepage:
- Size: 130 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Eletronicx FullStack Challenge 🤯🤯🤯
This is a public repository with contents of Flask Web Development, NextJS and Typescript, here you will find examples applied in a Restful API, and a basic and flexible structure to start your Flask apps. Also, is available a complete frontend in NextJS + Typescript, ready to consume our backend API
Steps to run this app 👇👇👇
1- Cloning repo
-----------------------------------
```
$ git clone https://github.com/josethz00/eletronicx_fullstack
```
2- Enter in folder (server)
-----------------------------------
```
$ cd server
```
3- Run the container
-----------------------------------
```
$ docker-compose up --build --remove-orphans
```
4- Run tests into the container
-----------------------------------
```
$ docker exec -it flask_app_container python3 -m pytest __tests__ -v
```
5- Enter in folder (web)
-----------------------------------
```
$ cd ../web
```
6- Install the dependencies
-----------------------------------
```
$ yarn install
```
7- Start the web app
-----------------------------------
```
$ yarn dev
```
## Check some of the default env variables (available on ``` server/config/variables.py ```)
| Env Variable | Default Value |
| ------------- | ------------- |
| HOST | '0.0.0.0' |
| PORT | '5000' |
| DEBUG | 'True' |