Skip to content
This repository has been archived by the owner on Jan 29, 2023. It is now read-only.

The ConstellationMind.Api is a REST API, containing core features for Android Application called Constellation Mind.

License

Notifications You must be signed in to change notification settings

ktutak1337/Constellation-Mind-Api

Repository files navigation

What is Constellation Mind?

A sky map tool designed for enthusiasts of the astronomy. You can learn the shapes of the celestial sphere which is divided into three regions: north, equator and south. That can help you to concentrate on part of the night sky that is visible from your location. This constellation app contains two modes: one for learning and second for training of your current skills.

What is ConstellationMind.Api?

The ConstellationMind.Api is a REST API, containing core features for Android Application called Constellation Mind.

Build Status

Branch Build & Tests
master Build & Tests
develop Build & Tests

What are prerequisites?

You will need the following tools:

How to start the application?

Follow these steps to get your development environment set up:

  1. Clone the repository.
  2. At the root directory, restore required packages by running:
~$ dotnet restore
  1. Next, build the solution by running:
~$ dotnet build
  1. Start the MongoDb service (by default it will be available under mongodb://127.0.0.1:27017)
    4.1. Linux setup:
        Start the MongoDb service using the following command:
        ~$ sudo service mongodb start
    4.2. Windows setup:
        Create the following folder C:\data\db
        To start MongoDB, run mongod.exe using the following command:
        ~$ "<your_installation_path>\MongoDB\Server\4.0\bin\mongod.exe" --dbpath="c:\data\db".
  2. Finally, service can be started locally within /src/ConstellationMind.Api directory (by default it will be available under http://localhost:5000) using the following command:
~$ dotnet run

You can also run the application using Docker:

  1. Start the MongoDb service:
~$ docker run --name mongo -d -p 27017:27017 mongo:3.6
  1. Run the application:
~$ docker run -d -p 5000:5000 --name constellation-mind constellation-mind-api --network const-mind

*to run the container in the background use -d switch.

  1. Or using Docker compose:
    3.1. Create a new docker-compose.yml file or use an existing which can find here.
version: "3.7"

services:
  api:
    build: dockerfile_location
    container_name: name
    depends_on:
      - mongo
    ports:
      - '5000:5000'
    networks:
      - network_name
  
  mongo:
    image: mongo:3.6
    container_name: name
    ports:
      - 27017:27017
    networks:
      - network_name 
    volumes:
      - mongo:volume_location

networks:
  network_name:
    name: name

volumes:
  mongo:
    driver: local

    3.2. In order to start it, execute the following command:

~$ docker-compose up

About

The ConstellationMind.Api is a REST API, containing core features for Android Application called Constellation Mind.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published