Description
The repository contains content/code for the workshop happening at The NEST IO on 21st September 2019. It covers the basics of NestJS. We'll also be covering some interesting info about React Hooks and when to use them.
This is a collaborative initiative of ReactKHI and NodeSchool Karachi.
Facing issues or have questions?
Join our NodeSchool Karachi Slack to discuss.
Installation & Initial Setup
Please install Git & NodeJS in your machine. Once done, open your terminal/command prompt & make sure you are at the root of this project. Then run the commands below:
Clone the repo
git clone https://github.com/nodeschool-karachi/fusionx-workshop.git # clone the repository
cd ./fusionx-workshop # navigate to project folder
Create the .env file (Important for the React app)
- Navigate to the
client
folder - Create a file named
.env
inside it (theclient
folder) - Put the following code in it:
SKIP_PREFLIGHT_CHECK=true
Install dependencies
npm install # install nestjs dependencies
cd client # cd into the client folder
npm install # install react app dependencies
cd .. # go back to project's root
Running NestJS server and React app together
Make sure you're at the project's root
npm run serve:both
# starts both the client (React) and server (NestJS) apps in watch mode
# the react app runs at port 3000 while the nestjs server runs at 5000
Running NestJS server only
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
Running NestJS tests
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov
Stay in touch
Organizers
- NodeSchool Karachi
- ReactKHI
Speakers
Mentors
- Zainab Saleem Khan (Mentor and Advisor)
- See the complete list of all the amazing mentors here