GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Sean-Hammond/platera-react-python: A startup React/JS/Python full-stack app that cuts marketing costs for restaurants.

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

1 Commit
1 Commit

Folders and files

NameName
Last commit message
Last commit date
.devcontainer
.devcontainer
 
 
.github
.github
 
 
.vscode
.vscode
 
 
dist
dist
 
 
docs
docs
 
 
migrations
migrations
 
 
public
public
 
 
src
src
 
 
.env.example
.env.example
 
 
.eslintrc
.eslintrc
 
 
.gitignore
.gitignore
 
 
.gitpod.Dockerfile
.gitpod.Dockerfile
 
 
.gitpod.yml
.gitpod.yml
 
 
4geeks.ico
4geeks.ico
 
 
Dockerfile.render
Dockerfile.render
 
 
Pipfile
Pipfile
 
 
Pipfile.lock
Pipfile.lock
 
 
Procfile
Procfile
 
 
README.es.md
README.es.md
 
 
README.md
README.md
 
 
database.sh
database.sh
 
 
index.html
index.html
 
 
learn.json
learn.json
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
pycodestyle.cfg
pycodestyle.cfg
 
 
render.yaml
render.yaml
 
 
render_build.sh
render_build.sh
 
 
requirements.txt
requirements.txt
 
 
vite.config.js
vite.config.js
 
 

Repository files navigation

WebApp boilerplate with React JS and Flask API

Build web applications using React.js for the front end and python/flask for your backend API.

  • Documentation can be found here: https://4geeks.com/docs/start/react-flask-template
  • Here is a video on how to use this template
  • Integrated with Pipenv for package managing.
  • Fast deployment to Render in just a few steps here.
  • Use of .env file.
  • SQLAlchemy integration for database abstraction.

1) Installation:

If you use Github Codespaces (recommended) or Gitpod this template will already come with Python, Node and the Posgres Database installed. If you are working locally make sure to install Python 3.10, Node

It is recomended to install the backend first, make sure you have Python 3.10, Pipenv and a database engine (Posgress recomended)

  1. Install the python packages: $ pipenv install
  2. Create a .env file based on the .env.example: $ cp .env.example .env
  3. Install your database engine and create your database, depending on your database you have to create a DATABASE_URL variable with one of the possible values, make sure you replace the valudes with your database information:
Engine DATABASE_URL
SQLite sqlite:////test.db
MySQL mysql://username:password@localhost:port/example
Postgress postgres://username:password@localhost:5432/example
  1. Migrate the migrations: $ pipenv run migrate (skip if you have not made changes to the models on the ./src/api/models.py)
  2. Run the migrations: $ pipenv run upgrade
  3. Run the application: $ pipenv run start

Note: Codespaces users can connect to psql by typing: psql -h localhost -U gitpod example

Undo a migration

You are also able to undo a migration by running

$ pipenv run downgrade

Backend Populate Table Users

To insert test users in the database execute the following command:

$ flask insert-test-users 5

And you will see the following message:

  Creating test users
  [email protected] created.
  [email protected] created.
  [email protected] created.
  [email protected] created.
  [email protected] created.
  Users created successfully!

Important note for the database and the data inside it

Every Github codespace environment will have its own database, so if you're working with more people eveyone will have a different database and different records inside it. This data will be lost, so don't spend too much time manually creating records for testing, instead, you can automate adding records to your database by editing commands.py file inside /src/api folder. Edit line 32 function insert_test_data to insert the data according to your model (use the function insert_test_users above as an example). Then, all you need to do is run pipenv run insert-test-data.

Front-End Manual Installation:

  • Make sure you are using node version 20 and that you have already successfully installed and runned the backend.
  1. Install the packages: $ npm install
  2. Start coding! start the webpack dev server $ npm run start

Publish your website!

This boilerplate it's 100% read to deploy with Render.com and Heroku in a matter of minutes. Please read the official documentation about it.

Contributors

This template was built as part of the 4Geeks Academy Coding Bootcamp by Alejandro Sanchez and many other contributors. Find out more about our Full Stack Developer Course, and Data Science Bootcamp.

You can find other templates and resources like this at the school github page.

About

A startup React/JS/Python full-stack app that cuts marketing costs for restaurants.

Resources

Readme
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.