- Make sure you have the mysql database installed.
- After that run
npm install
- Run
cp .env.example .env
- Then go to the src/server.ts and uncomment the line
29
. - Now every time that your server reboot you'll have the database been setup (drop and run the migrations). If you want to have the fixed migration setup, after the first time turn the line 29 on server.ts to be
false
again. - Run
npm run dev
to start your local server. - Open your browser on
http://localhost:3000/graphql
and play on playground.
jonathaniqueda / graphql-test Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License