Skip to content

Commit

Permalink
Replace apihub to freeapi
Browse files Browse the repository at this point in the history
- Replace personal info to dummy one
  • Loading branch information
wajeshubham committed Jul 16, 2023
1 parent b4cae38 commit 1c2b973
Show file tree
Hide file tree
Showing 7 changed files with 89 additions and 85 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM node

RUN mkdir -p /usr/src/apihub && chown -R node:node /usr/src/apihub
RUN mkdir -p /usr/src/freeapi && chown -R node:node /usr/src/freeapi

WORKDIR /usr/src/apihub
WORKDIR /usr/src/freeapi

# Copy package json and yarn lock only to optimise the image building
COPY package.json yarn.lock ./
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ By combining open source principles, accessibility, and a focus on learning, our

We welcome your interest in contributing to our open source project!

To contribute to ApiHub, please follow these steps:
To contribute to FreeAPI, please follow these steps:

1. Fork the repository.
2. Create a new branch for your feature or bug fix: `git checkout -b feat/your-feature-name` or `git checkout -b fix/your-bug-fix-name`.
Expand Down Expand Up @@ -84,7 +84,7 @@ Click [here](https://github.com/hiteshchoudhary/apihub/blob/dev/CONTRIBUTING.md)

### 📦 Using Docker (recommended)

To run the ApiHub project, follow these steps:
To run the FreeAPI project, follow these steps:

1. Install [Docker](https://www.docker.com/) on your machine.
2. Clone the project repository.
Expand All @@ -100,7 +100,7 @@ docker-compose up --build

### 💻 Running locally

To run the ApiHub project locally, follow these steps:
To run the FreeAPI project locally, follow these steps:

1. Install [Yarn](https://yarnpkg.com/), [NodeJs](https://www.nodejs.org/), [MongoDB](https://www.mongodb.com) and [MongoDB Compass (optional)](https://www.mongodb.com/products/compass) on your machine.
2. Clone the project repository.
Expand Down
6 changes: 3 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ version: '3.8'

services:
backend:
image: apihub-server
image: freeapi-server
build: .
ports:
- 8080:8080
volumes:
- ./:/usr/src/apihub
- /usr/src/apihub/node_modules
- ./:/usr/src/freeapi
- /usr/src/freeapi/node_modules
env_file:
- ./.env
depends_on:
Expand Down
9 changes: 7 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "apihub",
"name": "freeapi",
"version": "1.0.0",
"description": "A API learning go",
"type": "module",
Expand All @@ -12,7 +12,12 @@
"url": "git+https://github.com/hiteshchoudhary/apihub.git"
},
"keywords": [
"apihub"
"apihub",
"freeapi",
"open source",
"api as a service",
"public apis",
"kitchen sink"
],
"author": "Hitesh Choudhary",
"license": "ISC",
Expand Down
3 changes: 1 addition & 2 deletions src/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@ export const AvailableSocialLogins = Object.values(UserLoginType);
export const MAXIMUM_SUB_IMAGE_COUNT = 4;
export const MAXIMUM_SOCIAL_POST_IMAGE_COUNT = 6;

// ? REFACTOR: change name "apihub" everywhere in the codebase to "freeapi" (low priority)
export const DB_NAME = "apihub";
export const DB_NAME = "freeapi";

export const paypalBaseUrl = {
sandbox: "https://api-m.sandbox.paypal.com",
Expand Down
Loading

0 comments on commit 1c2b973

Please sign in to comment.