Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HOW TO START BACKEND ✨

To run your Flask project, ensure that your virtual environment is activated. If you haven't created a virtual environment yet, you can do so using the following command (make sure you are in the main folder of your project):

# Get in back-end folder:  
cd back-end  

# Copy the env.example file to get enviroments variables (only once):  
cp .env.back-example .env  

# Create a new virtual enviroment (only once):  
python -m venv venv  

# Next, activate the virtual environment:  
source venv/Scripts/activate  

# Install requirements (only once):  
pip install -r requirements.txt  

# Run server:  
python app.py  

DATABASE ✨

Inside the "app" directory, a folder named "instance/" will be created where the database will be located.  

HOW TO START FRONTEND ✨

# Get in front-end folder:  
cd front-end  

# Install packages (only once):  
npm install  

# Copy the env.example file to get enviroments variables (only once):  
cp .env.front-example .env  

# Run server:  
npm run dev  



HOW TO GET THIS REPOSITORY LOCAL

Initialize the folder as a Git repository:

# Initializate git in an empty folder:  
git init  

# Add a remote repository:  
git remote add origin https://github.com/19Mega/codebo-template  

# Rename the current branch to "main":  
git branch -m "main"  

# Pull changes from the "main" branch:  
git pull origin main  

BRANCH MANAGMENT

# Create a new branch "ft-new-branch":  
$ git checkout -b "ft-new-branch"  

# Switch to a different branch "ft-switch-branch":  
$ git checkout ft-switch-branch  

# List available branches:  
$ git branch  

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages