Giter Club home page Giter Club logo

codebo-template's Introduction

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  

codebo-template's People

Contributors

19mega avatar

Stargazers

Juan Coronel avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.