https://github.com/mokshit06/cbse-core
CBSE 2.0 - Centralized portal for CBSE school teachers and students
https://github.com/mokshit06/cbse-core
Last synced: 2 months ago
JSON representation
CBSE 2.0 - Centralized portal for CBSE school teachers and students
- Host: GitHub
- URL: https://github.com/mokshit06/cbse-core
- Owner: Mokshit06
- Created: 2021-08-18T20:23:16.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-08-24T10:01:15.000Z (almost 4 years ago)
- Last Synced: 2025-01-29T17:11:26.489Z (4 months ago)
- Language: TypeScript
- Homepage:
- Size: 3.75 MB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CBSE 2.0
Centralized portal for CBSE school teachers and students. This was made for the CORE hackathon 2021.
## Requirements
- postgres
- nodejs
- yarn## Setup
1. Install the dependencies.
```bash
yarn install
```2. Copy `.env.example` files to `.env`.
```bash
cp packages/web/.env.example packages/web/.env
cp packages/server/.env.example packages/server/.env
```3. Add the postgres connection url and cookie secret (random string) in `packages/server/.env`.
```bash
COOKIE_SECRET="..."
DATABASE_URL="postgresql://:@localhost:5432/cbse-core?schema=public"
```4. Create database and run migrations.
```bash
cd packages/server && yarn prisma migrate dev && cd ../..
```5. Add api url to `packages/web/.env`.
```bash
NEXT_PUBLIC_API_URL="http://localhost:5000"
```6. Start server and web app in 2 seperate terminal sessions.
```bash
yarn web
``````bash
yarn server
```7. The web app should be running on `http://localhost:3000`, along with the server running on `http://localhost:5000`.