Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
NotificationsYou must be signed in to change notification settings

Emanuel4Geeks/Authentication-system-with-Python-Flask-and-React.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Manual Installation:

It is recomended to install the backend first, make sure you have Python 3.8, 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:
EngineDATABASE_URL
SQLitesqlite:////test.db
MySQLmysql://username:password@localhost:port/example
Postgresspostgres://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

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  test_user1@test.com created.  test_user2@test.com created.  test_user3@test.com created.  test_user4@test.com created.  test_user5@test.com created.  Users created successfully!

To update with all yours tables you can edit the file app.py and go to the line 80 to insert the code to populate others tables

Front-End Manual Installation:

  • Make sure you are using node version 14+ 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 theofficial documentation about it.

Contributors

This template was built as part of theFull Stack Developer course at4Geeks Academy Coding Bootcamp byAlejandro Sanchez andmany other contributors.

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp