Skip to content

Commit

Permalink
inital commits
Browse files Browse the repository at this point in the history
  • Loading branch information
vatan45 committed Oct 1, 2024
0 parents commit 349ed7e
Show file tree
Hide file tree
Showing 26 changed files with 6,963 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Node modules
**/node_modules
**/dist
**/.next
**/build
**/out

# Environment variables
.env
.env.local
.env.development.local
.env.test.local
.env.production.local

# Log files
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*

# Vercel specific
.vercel
output/

# MacOS files
.DS_Store

# IDE specific files
.idea/
*.sublime-workspace
*.sublime-project
.vscode/
*.code-workspace

# Others
*.tgz
*.zip
*.rar
*.tar
*.gzip
*.gzip2
*.tar.gz
*.tgz

# Cache files
.cache/
.cache-loader/
13 changes: 13 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"name": "unisocial-backend",
"version": "1.0.0",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"description": ""
}
19 changes: 19 additions & 0 deletions packages/api/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import express from 'express';
import cors from 'cors';
import dotenv from 'dotenv';

dotenv.config();

const app = express();
const PORT = process.env.PORT || 5001;

app.use(cors());
app.use(express.json());

app.get('/api', (req, res) => {
res.send('Hello from the API!');
});

app.listen(PORT, () => {
console.log(`Server is running on http://localhost:${PORT}`);
});
Loading

0 comments on commit 349ed7e

Please sign in to comment.