This is the API part of the following application Moon
-
Local Docker installation
- Install
Moon-Storage
by running:
> git clone https://github.com/gitsignore/moon-storage && cd moon-storage
- Build
Moon-Storage
's app according to your hardware and your environment:
# Production build > docker build -t moon-storage . # Development build > docker build -f Dockerfile-dev -t moon-storage . # Arm v7 build (aka: Raspberry Pi) > docker build -f Dockerfile-arm32v7 -t moon-storage .
- Run
Moon-Storage
's app:
> docker run -p 8080:8080 --name moon-storage -d moon-storage
You can provide parameters on run like:
- Application port : -p <host_port>:8080
- Database data volume : -v <host_data_folder>:/usr/app/data
- Cors origin URI : -e CORS_ORIGIN_URI='http://localhost:3000'
- Open your browser to http://localhost:8080/teams
- Install
-
Local Node/npm installation
- Install
Moon-Storage
by running:
> git clone https://github.com/gitsignore/moon-storage && cd moon-storage
- Then install dependencies:
> npm install
- Launch
Moon-Storage
app with:
> npm run dev
- Open your browser to http://localhost:8080/teams
Replace the default 8080 port by another one in
.env
file - Install
Moon-Storage is MIT licensed.