Hello and welcome! This is a fullstack ecommerce application for manual & automatic watches, implementing React for the frontend and Python & Flask + SQLAlchemy for the backend. This README will give an overview of the server-side, and getting the backend up & running in the terminal(s). For an overview of the client-side, please go here.
.
├── CONTRIBUTING.md
├── LICENSE.md
├── README.md
├── Pipfile
├── Pipfile.lock
├── client
│ ├── README.md
│ ├── node_modules
│ ├── package-lock.json
│ ├── package.json
│ ├── public
│ └── src
│ ├── components
│ └── context
└── server
├── app.py
├── config.py
├── migrations
├── models.py
└── seed.py
- Fork and clone this repo from Github to your local environment
- Move to your local base directory and open the terminal in your code editor
- Run
pipenv installto install dependencies - Run
pipenv shellto create and enter your virtual environment cd serverto enter the server directory
To setup your database, do the following:
- make sure that you are in the
server/directory and runexport FLASK_APP=app.pyto specify how to load the application - run
flask db init - run
flask db migrate -m "your message" - run
flask db upgrade - run
python seed.pyto seed the database
Tip: It's always a good idea to start with an empty revision! This allows you to roll all the way back while still holding onto your database. You can create this empty revision with
flask db revision -m'Create DB'.
In a new terminal, run pipenv shell and, after making sure that you cd into the /server directory, run flask run to get the backend server up & running
For an overview of the client-side, please go here
TIP: It's good practice to have the backend server running first!
- Server-side:
- faker
- flask
- flask-migrate
- flask-sqlalchemy
- flask-cors
- flask-restful
- flask-bcrypt
- sqlalchemy
- sqlalchemy-serializer
- requests
- This project was bootstrapped with Create React App.
- Watches used for this app were sourced from the following sites:
- EmailJS
- Chatengine.io
- Material UI
- React documentation
- Python documentation
- Flask documentation
- SQLAlchemy documentation
- Flask-SQLAlchemy documentation
