This repository includes backend part using NodeJS and MongoDB and likewise frontend using React JS and TypeScript. This form application can be used in any SPA. And it has several features such as:
- Registration and login with access and refresh tokens.
- Simple email validation.
- Account confirmation via email.
- Test function to get all users if you are logged in.
- NodeJS
- Express
- MongoDB
- Mongoose
- Nodemailer
- Uuid
- JsonWebToken
- Cors
- Bcrypt
- ReactJS
- TypeScript
- Axios
- MobX
- Create new project with two folders. Server and Client.
- Inside the first one deploy the
index.jsfile. - Initialize with node package manager.
npm initto createpackage.jsonfile. - Install all necessary dependencies
npm install. For example usenpm install cors@2.1.5to install needed version of the package. - Create a database.
- Develop server part.
- After backend go into client folder and deploy react app with typescript template.
- Develop client part.
- Download zip archive.
- Install all necessary dependencies with
npm installcommand. - Create database using MongoDB.
- Place the connection string inside
.envfile and change other variables such as email port host etc. - Run script using command
npm run developfor server. For client usenpm start.