Skip to content

Commit

Permalink
Rename repos' name
Browse files Browse the repository at this point in the history
  • Loading branch information
linw1995 committed Aug 2, 2024
1 parent e10257c commit ba5acaf
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 159 deletions.
89 changes: 0 additions & 89 deletions .gitea/workflows/CI.yml

This file was deleted.

59 changes: 0 additions & 59 deletions .gitea/workflows/release.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: example
POSTGRES_DB: bmm
POSTGRES_DB: bearmark
options: >-
--health-cmd pg_isready
--health-interval 10s
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "bmm"
name = "bearmark"
version = "0.1.0"
edition = "2021"

Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
# bmm
# Bearmark

Bearmark is a lightweight browser bookmark management system, designed for developers who need a personalized solution for managing bookmarks through API integration.

It allows users to deploy and use it on their servers, ensuring the security and privacy of data.
3 changes: 1 addition & 2 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: '3'
services:
db:
image: postgres:12
Expand All @@ -8,7 +7,7 @@ services:
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: example
POSTGRES_DB: bmm
POSTGRES_DB: bearmark
healthcheck :
test: [ "CMD", "pg_isready", "-q", "-U", "postgres" ]
interval : 5s
Expand Down
4 changes: 2 additions & 2 deletions scripts/cli.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ main() {
if [[ -z "${CI-}" ]]; then
echo ">>> Setting up the project development environment"
docker compose up -d --wait
echo "DATABASE_URL=postgres://postgres:example@localhost:5432/bmm" >.env
echo "DATABASE_URL=postgres://postgres:example@localhost:5432/bearmark" >.env
else
echo ">>> Skip setting up the project development environment"
echo "DATABASE_URL=postgres://postgres:example@${POSTGRES_HOST-db}:${POSTGRES_PORT-5432}/bmm" >.env
echo "DATABASE_URL=postgres://postgres:example@${POSTGRES_HOST-db}:${POSTGRES_PORT-5432}/bearmark" >.env
fi
echo ">>> Setting up database"
diesel migration run
Expand Down
8 changes: 4 additions & 4 deletions src/bin/serve.rs
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
#[macro_use]
extern crate rocket;

use bmm::api::fairings::db::Db;
use bmm::api::{bookmark, folder, tag};
use bearmark::api::fairings::db::Db;
use bearmark::api::{bookmark, folder, tag};

use rocket_db_pools::Database;

#[launch]
#[cfg(not(tarpaulin_include))]
async fn rocket() -> _ {
bmm::utils::logging::setup_console_log();
bmm::db::connection::run_migrations().await;
bearmark::utils::logging::setup_console_log();
bearmark::db::connection::run_migrations().await;

rocket::build()
.attach(Db::init())
Expand Down

0 comments on commit ba5acaf

Please sign in to comment.