Coder Social home page Coder Social logo

apiv2's Introduction


4Geeks

4Geeks's mission is to accelerate the way junior developers learn and evolve using technology.

Coveralls Checks

Documentation

You can find the development documentation on the website.

Check out the Postman docs, Swagger or Redoc.

The documentation is divided into several sections:

Run 4Geeks in Codespaces (no installation)

Click Code -> Codespaces -> Create namespace on {BRANCH_NAME}.

Codespaces

Install Docker

Install docker desktop in your Windows, else find a guide to install Docker and Docker Compose in your linux distribution uname -a.

Running 4geeks

Run 4Geeks API as docker service

# open 4Geeks API as a service and export the port 8000
docker-compose up -d

# create super user
sudo docker compose run 4geeks python manage.py createsuperuser

# See the output of Django
docker-compose logs -f 4geeks

# open localhost:8000 to view the api
# open localhost:8000/admin to view the admin

Run 4Geeks in your local machine

Installation

# Check which dependencies you need install in your operating system
python -m scripts.doctor

# Setting up the redis and postgres database, you also can install manually in your local machine this databases
docker-compose up -d redis postgres

# Install and setting up your development environment (this command replace your .env file)
python -m scripts.install

Run 4Geeks API

You must up Redis and Postgres before open 4Geeks.

# Collect statics
pipenv run python manage.py collectstatic --noinput

# Run migrations
pipenv run python manage.py migrate

# Load fixtures (populate the database)
pipenv run python manage.py loaddata breathecode/*/fixtures/dev_*.json

# Create super user
pipenv run python manage.py createsuperuser

# Run server
pipenv run start

# open localhost:8000 to view the api
# open localhost:8000/admin to view the admin

Testing in your local machine

Installation

# Check which dependencies you need install in your operating system
python -m scripts.doctor

# Install and setting up your development environment (this command replace your .env file)
python -m scripts.install

Run tests

# Testing
pipenv run test ./breathecode/activity  # path

# Testing in parallel
pipenv run ptest ./breathecode/activity  # path

# Coverage
pipenv run cov breathecode.activity  # python module path

# Coverage in parallel
pipenv run pcov breathecode.activity  # python module path

apiv2's People

Contributors

99lalo avatar alesanchezr avatar alexscoelho avatar andresgarciasch avatar brcre001 avatar dependabot[bot] avatar etolopez avatar gustavomm19 avatar ingindisrael avatar jagtrrz avatar jefer94 avatar jhosagid7 avatar johndbm avatar kant avatar msusanrbrown avatar tommygonzaleza avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  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.