Skip to content

lurkingryuu/fyle-interview-intern-backend

 
 

Repository files navigation

Fyle Backend Challenge

Who is this for?

This challenge is meant for candidates who wish to intern at Fyle and work with our engineering team. You should be able to commit to at least 6 months of dedicated time for internship.

Why work at Fyle?

Fyle is a fast-growing Expense Management SaaS product. We are ~40 strong engineering team at the moment.

We are an extremely transparent organization. Check out our careers page that will give you a glimpse of what it is like to work at Fyle. Also, check out our Glassdoor reviews here. You can read stories from our teammates here.

Challenge outline

This challenge involves writing a backend service for a classroom. The challenge is described in detail here

What happens next?

You will hear back within 48 hours from us via email.

Installation

  1. Fork this repository to your github account
  2. Clone the forked repository and proceed with steps mentioned below

Install requirements

virtualenv env --python=python3.8
source env/bin/activate
pip install -r requirements.txt

Reset DB

export FLASK_APP=core/server.py
rm core/store.sqlite3
flask db upgrade -d core/migrations/

Start Server

bash run.sh

Run Tests

pytest -vvv -s tests/

# for test coverage report
# pytest --cov
# open htmlcov/index.html

Run with Docker

docker build -t fyle-backend-challenge .
docker run -d -p 7755:7755 --env GUNICORN_PORT=7755 \
        --name fyle-backend-challenge-1 fyle-backend-challenge
  • The other environment variables are specified in docker-compose.yml

  • The server will be running at http://localhost:7755

  • To check logs

docker logs -f fyle-backend-challenge-1
  • To stop the server
docker stop fyle-backend-challenge-1
  • To remove the container
docker rm fyle-backend-challenge-1

Run with Docker Compose

docker-compose build
docker-compose up -d

The server will be running at http://localhost:7755

To check logs

docker-compose logs -f

To stop the server

docker-compose down

About

Entry Task for an Internship at Fyle

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 97.1%
  • Other 2.9%