-
Notifications
You must be signed in to change notification settings - Fork 2
Installation
oriionn edited this page Aug 7, 2023
·
1 revision
- Node JS 14.0.0 or higher
- NPM 6.14.0 or higher
- MongoDB 4.4.0 or higher
- Clone the repository
- Install dependencies using
npm install
- Edit
config.js
to your liking
module.exports = {
// The port of the website
PORT: 80,
// The domain name of the website
DOMAIN: "http://localhost",
// Database type: json, mongodb
DB_TYPE: "mongodb",
// mongodb config
DB_HOST: "127.0.0.1",
DB_PORT: 27017,
DB_NAME: "quecto",
DB_USER: "",
DB_PASS: "",
}
- Start the server using
npm start
If you don't use username and password:
docker run -d \
-p [PORT]:3000 \
-e DOMAIN=http://localhost \
-e DB_TYPE=mongodb \
-e DB_HOST=127.0.0.1 \
-e DB_PORT=27017 \
-e DB_NAME=quecto \
oriionn/quecto
If you use username and password:
docker run -d \
-p [PORT]:3000 \
-e DOMAIN=http://localhost \
-e DB_TYPE=mongodb \
-e DB_HOST=127.0.0.1 \
-e DB_PORT=27017 \
-e DB_NAME=quecto \
-e DB_USER=username \
-e DB_PASS=password \
oriionn/quecto
⚠ Don't edit :3000
If you don't use username and password:
version: "3.8"
services:
quecto:
image: oriionn/quecto
container_name: quecto
ports:
- "[PORT]:3000"
environment:
- DOMAIN=http://localhost
- DB_TYPE=mongodb
- DB_HOST=127.0.0.1
- DB_PORT=27017
- DB_NAME=quecto
If you use username and password:
version: "3.8"
services:
quecto:
image: oriionn/quecto
container_name: quecto
ports:
- "[PORT]:3000"
environment:
- DOMAIN=http://localhost
- DB_TYPE=mongodb
- DB_HOST=127.0.0.1
- DB_PORT=27017
- DB_NAME=quecto
- DB_USER=username
- DB_PASS=password
⚠ Don't edit :3000
- Node JS 14.0.0 or higher
- NPM 6.14.0 or higher
- Clone the repository
- Install dependencies using
npm install
- Edit
config.js
to your liking
module.exports = {
// The port of the website
PORT: 80,
// The domain name of the website
DOMAIN: "http://localhost",
// Database type: json, mongodb
DB_TYPE: "json",
// json config
DB_JSON_PATH: "./db.json"
}
- Start the server using
npm start
- Create a file named
db.json
in the root of the project - Add this to the file:
{}
docker run -d \
-p [PORT]:3000 \
-e DOMAIN=http://localhost \
-e DB_TYPE=json \
-e DB_TYPE_PATH=./db.json \
oriionn/quecto
version: "3.8"
services:
quecto:
image: oriionn/quecto
container_name: quecto
ports:
- "[PORT]:3000"
environment:
- DOMAIN=http://localhost
- DB_TYPE=json
- DB_TYPE_PATH=./db.json
⚠ Don't edit :3000