- Go to project folder and install dependencies:
npm install- Launch development server, and open
localhost:3000in your browser:
cp .env.example .env.development
-- fill .env.development with development configuration.
npm startTask automation is based on NPM scripts.
| Task | Description |
|---|---|
npm start |
Run development server on http://localhost:3000/ |
The example codebase uses Typeorm with a mongodb database.
npm start- Start applicationnpm run build- Build application
This application adheres to the api specifications set by the Thinkster team. This helps mix and match any backend with any other frontend without conflicts.
More information regarding the project can be found here https://github.com/gothinkster/realworld
npm start- Test api with
http://localhost:3000/api/docsin your favourite browser
This applications uses JSON Web Token (JWT) to handle authentication. The token is passed with each request using the Authorization header with Token scheme. The JWT authentication middleware handles the validation and authentication of the token. Please check the following sources to learn more about JWT.