Skip to content

Commit 32ca57a

Browse files
committedDec 24, 2024
Switched to mono-repo structure
- moved frontend code to "frontend" folder - added code from "wec-nitk-website-backend" repo into backend folder - added Dockerfiles and docker-compose.yml - added proper .env.example
1 parent a693709 commit 32ca57a

File tree

211 files changed

+18612
-4904
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

211 files changed

+18612
-4904
lines changed
 

‎.env.example

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Backend
2+
BACKEND_HOST=0.0.0.0
3+
BACKEND_PORT=1337
4+
BACKEND_URL=http://localhost:5000/strapi
5+
APP_KEYS="toBeModified1,toBeModified2"
6+
API_TOKEN_SALT=tobemodified
7+
ADMIN_JWT_SECRET=tobemodified
8+
TRANSFER_TOKEN_SALT=tobemodified
9+
JWT_SECRET=tobemodified
10+
11+
# Database
12+
DATABASE_CLIENT=postgres
13+
DATABASE_HOST=db
14+
DATABASE_PORT=5432
15+
DATABASE_NAME=postgres
16+
DATABASE_USERNAME=postgres
17+
DATABASE_PASSWORD=postgres
18+
DATABASE_SSL=false
19+
20+
# Frontend
21+
PORT=3000
22+
STRAPI_API_KEY=addyourapikeyhere
23+
NEXT_PUBLIC_STRAPI_URL=http://strapi:1337
24+
NEXT_PUBLIC_STRAPI_IMAGE_URL=http://localhost:5000/strapi
25+
REVALIDATE=0
26+
ANALYTICS_GTAG=addgoogleanalyticsgtaghere

‎.gitignore

-37
Original file line numberDiff line numberDiff line change
@@ -1,38 +1 @@
1-
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2-
3-
# dependencies
4-
/node_modules
5-
/.pnp
6-
.pnp.js
7-
.yarn/install-state.gz
8-
9-
# testing
10-
/coverage
11-
12-
# next.js
13-
/.next/
14-
/out/
15-
16-
# production
17-
/build
18-
19-
# misc
20-
.DS_Store
21-
*.pem
22-
23-
# debug
24-
npm-debug.log*
25-
yarn-debug.log*
26-
yarn-error.log*
27-
28-
# local env files
29-
.env*.local
30-
31-
# vercel
32-
.vercel
33-
34-
# typescript
35-
*.tsbuildinfo
36-
next-env.d.ts
37-
381
.env

0 commit comments

Comments
 (0)