/simpleblog_server

Primary LanguageTypeScriptMIT LicenseMIT

🙃

Getting Started with Backend

First, run the development server:


First create a Redis instence on https://railway.app/

cd server
cp .env.sample .env

and then paste the Redis connection string in .env file

npm install
# or
yarn
npx prisma npx prisma migrate dev -n Init
npm run dev
# or
yarn dev

Open http://localhost:4000/graphql with your browser to see the result.

You can start editing the page by modifying src/server.ts. The page auto-updates as you edit the file.


Getting Started with front end

First, run the development server:

cd client
cp .env.sample .env
npm install
# or
yarn
npm run dev
# or
yarn dev

Open http://localhost:3000/ with your browser to see the result.

and then sign up and login add a post hah

You can start editing the page by modifying src/pages/index.tsx. The page auto-updates as you edit the file.