Login And SignUp CRUD operations using React and Bottle
Back-end: Python 2.7, Bottle Framework
Front-end: React, Material-UI , NodeJS, npm
DB: PostgreSql
DB Setup:
- Install and configure PostgreSQL with DB Name react User postgres and password
- inside public schema execute migration users.sql.
- This will create users table in DB with columns username, email and password.
For custom DB credentials such as dbname, username, password, you need to update the same in config.py file.
Backend Setup:
- clone the repo
- navigate to requirements.txt folder in command line and execute
- navigate to main_app.py and execute
pip install -r requirements.txt
python main_app.py
This will start the backend server.
Frontend Setup:
- navigate to package.json folder inside frontend directory in command line and execute
- To start front end server and execute within same direcotry
npm install
This wil install all require node modules
npm start
Note: Any third party library that needs to be added should be added in requirements.txt file and any new SQL migration file that needs to be added should be added in migrations directory.