Skip to content

Commit b28398e

Browse files
Init
0 parents  commit b28398e

36 files changed

+13152
-0
lines changed

backend/.gitignore

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Dependencies
2+
node_modules/
3+
4+
# Production build
5+
dist/
6+
7+
# Environment variables
8+
.env
9+
.env.local
10+
.env.*.local
11+
12+
# Logs
13+
*.log
14+
npm-debug.log*
15+
yarn-debug.log*
16+
yarn-error.log*
17+
18+
# IDE and editor files
19+
.idea/
20+
.vscode/
21+
*.swp
22+
*.swo
23+
24+
# OS generated files
25+
.DS_Store
26+
Thumbs.db
27+
*.db
28+
*.db-journal

backend/Dockerfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
FROM node:20-alpine
2+
3+
WORKDIR /app
4+
5+
COPY package*.json ./
6+
7+
RUN npm install
8+
9+
COPY . .
10+
11+
EXPOSE 3001
12+
13+
CMD ["npm", "run", "dev"]

backend/README.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Bitcoin Map
2+
3+
A Node.js project with TypeScript.
4+
5+
## Setup
6+
7+
1. Install dependencies:
8+
9+
```bash
10+
npm install
11+
```
12+
13+
2. Development mode:
14+
15+
```bash
16+
npm run dev
17+
```
18+
19+
3. Build for production:
20+
21+
```bash
22+
npm run build
23+
```
24+
25+
4. Run production build:
26+
27+
```bash
28+
npm start
29+
```
30+
31+
## Scripts
32+
33+
- `npm run dev`: Starts the development server with hot-reload
34+
- `npm run build`: Builds the project for production
35+
- `npm start`: Runs the production build
36+
- `npm test`: Runs the test suite

0 commit comments

Comments
 (0)