Giter VIP home page Giter VIP logo

lmtsm-backend's Introduction

Installation

  1. Clone the repo

    git clone https://github.com/shouryade/LMTSM-Backend.git
    cd LMTSM-Backend
  2. Make your you have Python 3.10 installed on your system. If not, you can download it from here.

  3. Install pipenv by running the following command in your terminal:

    pip install pipenv
  4. Install the dependencies

     pipenv install
  5. Activate the virtual environment

    pipenv shell
  6. Run the server

    pipenv run python -m app
  7. The server should be up and running on http://localhost:8100

Setting environment variables

  1. Rename the .env.sample file to .env
  2. Replace the values of the variables with your own values
  3. Close the server by pressing Ctrl + C in the terminal.
  4. Restart the server by running the following command:
    pipenv run python -m app

Backend Documentation

You can access the documentation of the backend by visiting http://localhost:8100/docs You can also try out the API endpoints by first authenticating and creating a user and setting their role to super_admin (using MongoDB Compass) and then using the Try it out button to make requests to the API.

Production Setup

Make sure you have docker and docker-compose and you are added in the docker user group. Run the following command to start the containers and setup volumes.

docker-compose -f docker-compose-prod.yml up -d

Execute docker ps to know the uptime and other details regarding the containers.

lmtsm-backend's People

Contributors

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